本文整理汇总了C#中ButtonPressedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ButtonPressedEventArgs类的具体用法?C# ButtonPressedEventArgs怎么用?C# ButtonPressedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ButtonPressedEventArgs类属于命名空间,在下文中一共展示了ButtonPressedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: pathEdit_ButtonClick
private void pathEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Kind == ButtonPredefines.Close)
SetPath(null);
else if (e.Button.Kind == ButtonPredefines.Ellipsis)
ChooseFile();
}
开发者ID:ViniciusConsultor,项目名称:hudson-tray-tracker,代码行数:7,代码来源:NotificationSettingsControl.cs
示例2: Properties_ButtonClick
protected void Properties_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Caption == FileButton.Caption) {
if (OFDlg.ShowDialog() == DialogResult.OK)
Text = OFDlg.FileName;
}
}
开发者ID:ZixiangBoy,项目名称:YongERP,代码行数:7,代码来源:FileBrowser.cs
示例3: beOptions_ButtonClick
private void beOptions_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Kind != ButtonPredefines.Plus) return;
if (sender == beMPAA)
{
if (String.IsNullOrEmpty((String)beMPAA.Text)) return;
if (MPAAList.Contains(beMPAA.Text)) return;
MPAAList.Add((String)beMPAA.Text);
MPAAdirty = true;
lbcMPAA.Refresh();
beMPAA.Text = String.Empty;
}
else if (sender == beTags)
{
if (String.IsNullOrEmpty((String)beTags.Text)) return;
if (TagList.Contains(beTags.Text)) return;
TagList.Add((String)beTags.Text);
TagsDirty = true;
lbcTags.Refresh();
beTags.Text = String.Empty;
}
}
开发者ID:peeboo,项目名称:open-media-library,代码行数:25,代码来源:Options.cs
示例4: repositoryItemButtonEdit_ButtonClick
private void repositoryItemButtonEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
{
var autoWidget = gridViewAutoWidgets.GetFocusedRow() as AutoWidget;
if (autoWidget == null) return;
switch (e.Button.Index)
{
case 0:
Library.Settings.AutoWidgets.Remove(autoWidget);
LoadData();
break;
case 1:
using (var form = new FormSelectWidget())
{
form.laWidgetDescription.Text = autoWidget.Extension.ToUpper();
form.checkEditInvert.Checked = autoWidget.Inverted;
form.pbSelectedWidget.Image = autoWidget.Widget;
if (form.ShowDialog() != DialogResult.OK) return;
autoWidget.Inverted = form.checkEditInvert.Checked;
autoWidget.Widget = form.pbSelectedWidget.Image;
gridViewAutoWidgets.UpdateCurrentRow();
gridViewAutoWidgets.RefreshData();
gridViewAutoWidgets.Focus();
}
break;
}
}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:26,代码来源:FormAutoWidgets.cs
示例5: repositoryItemHyperLinkEdit_ButtonClick
private void repositoryItemHyperLinkEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (advBandedGridViewData.FocusedRowHandle == GridControl.InvalidRowHandle) return;
if (e.Button.Index != 0) return;
var videoLinkInfo = advBandedGridViewData.GetFocusedRow() as VideoLinkInfo;
if (videoLinkInfo == null) return;
Clipboard.SetText(advBandedGridViewData.FocusedColumn == gridColumnMp4Url ? videoLinkInfo.mp4Url : videoLinkInfo.thumbUrl);
}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:8,代码来源:GroupControl.cs
示例6: gridLookUpEditProduct_ButtonPressed
private void gridLookUpEditProduct_ButtonPressed(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Index == 1)
{
var product = new FormInsertOrUpdateProduct(null);
product.ShowDialog();
LoadProductForGridLookUp();
}
}
开发者ID:cuongpv88,项目名称:work,代码行数:9,代码来源:FormReceipt.cs
示例7: OnSourceButtonClick
private void OnSourceButtonClick(object sender, ButtonPressedEventArgs e)
{
using (var dialog = new FolderBrowserDialog())
{
dialog.SelectedPath = buttonEditSource.EditValue as String;
if (dialog.ShowDialog() != DialogResult.OK) return;
buttonEditSource.EditValue = dialog.SelectedPath;
}
}
开发者ID:w01f,项目名称:VolgaTeam.Dashboard,代码行数:9,代码来源:FormMain.cs
示例8: FolderPathButtonClick
private void FolderPathButtonClick(object sender, ButtonPressedEventArgs e) {
if (e.Button.Kind == ButtonPredefines.Right) {
Process.Start(_folderPath.Text);
} else {
var dialog = new FolderBrowserDialog { Description = "Select folder..." };
if (dialog.ShowDialog() != DialogResult.Cancel) {
_folderPath.Text = dialog.SelectedPath;
}
}
}
开发者ID:aries544,项目名称:eXpand,代码行数:10,代码来源:FolderBrowseEditor.cs
示例9: beTitledFanArtPath_ButtonClick
private void beTitledFanArtPath_ButtonClick(object sender, ButtonPressedEventArgs e)
{
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.Description = @"Titled FanArt Path";
fbd.SelectedPath = OMLSettings.TitledFanArtPath;
if (fbd.ShowDialog() == DialogResult.OK)
{
beTitledFanArtPath.EditValue = fbd.SelectedPath;
}
}
开发者ID:peeboo,项目名称:open-media-library,代码行数:10,代码来源:Options.cs
示例10: beOutputFile_ButtonClick
private void beOutputFile_ButtonClick(object sender, ButtonPressedEventArgs e)
{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Excel CSV File(*.csv)|*.csv";
sfd.OverwritePrompt = true;
sfd.Title = "������ʱ�����о���ֵΪCSV��ʽ";
if (sfd.ShowDialog() == DialogResult.OK) {
beOutputFile.Text = sfd.FileName;
}
}
开发者ID:rollend,项目名称:LevelUp,代码行数:10,代码来源:NTSMatrixExporterForm.cs
示例11: gridLookUpEdit1_Properties_ButtonPressed
private void gridLookUpEdit1_Properties_ButtonPressed(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Index == 1)
{
var addArea = new FormAddArea();
addArea.ShowDialog();
LoadGirdLookUpArea();
Refresh();
}
}
开发者ID:cuongpv88,项目名称:work,代码行数:10,代码来源:FormUpdateSuppliers.cs
示例12: buttonEditFolderSelector_ButtonClick
private void buttonEditFolderSelector_ButtonClick(object sender, ButtonPressedEventArgs e)
{
var folderSelector = sender as ButtonEdit;
if (folderSelector == null) return;
using (var dialog = new FolderBrowserDialog())
{
dialog.SelectedPath = folderSelector.EditValue as String;
if (dialog.ShowDialog() != DialogResult.OK) return;
folderSelector.EditValue = dialog.SelectedPath;
}
}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:11,代码来源:FormPaths.cs
示例13: repositoryItemButtonEditFiles_ButtonClick
private void repositoryItemButtonEditFiles_ButtonClick(object sender, ButtonPressedEventArgs e)
{
var file = gridViewFiles.GetFocusedRow() as StateFile;
if (file == null) return;
if (PopupMessageHelper.Instance.ShowWarningQuestion("Are you sure want to delete this file?") != DialogResult.Yes) return;
if (File.Exists(file.FilePath))
{
try { File.Delete(file.FilePath); }
catch { }
}
gridViewFiles.DeleteSelectedRows();
}
开发者ID:w01f,项目名称:VolgaTeam.Dashboard,代码行数:12,代码来源:FormSavedStates.cs
示例14: buttonEdit1_ButtonClick
private void buttonEdit1_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (!string.IsNullOrEmpty(buttonEdit1.Text) && Directory.Exists(buttonEdit1.Text))
{
fbdSlctFolderSiemens.SelectedPath = buttonEdit1.Text;
}
if (fbdSlctFolderSiemens.ShowDialog(this) == DialogResult.OK)
{
buttonEdit1.Text = fbdSlctFolderSiemens.SelectedPath;
}
}
开发者ID:ctukc-nt,项目名称:UPPY,代码行数:12,代码来源:Form1.cs
示例15: personEdit_ButtonClick
private void personEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Caption == "Clear") {
SelectedRow.Person = null;
gridView.RefreshRow(gridView.FocusedRowHandle);
gridView.FocusedColumn = null;
try {
changingRow = true;
personSelector.SelectedPerson = null;
} finally { changingRow = false; }
} else if (SelectedRow.Person != null)
new PersonDetails(SelectedRow.Person) { MdiParent = MdiParent }.Show();
}
开发者ID:SyedArifulIslamEmon,项目名称:Billing,代码行数:13,代码来源:EmailListForm.cs
示例16: ribCOD_SOCI_NEGO_ButtonClick
private void ribCOD_SOCI_NEGO_ButtonClick(object sender, ButtonPressedEventArgs e)
{
var oxfs = new xfSearchPerson(SESSION_COMP) { NUM_ACCI = 8 };
if (oxfs.ShowDialog() == DialogResult.OK)
{
var row = (BEDocumentExpenses)gdvExpens.GetRow(gdvExpens.FocusedRowHandle);
row.COD_SOCI_NEGO = oxfs.oBe.COD_SOCI_NEGO;
row.ALF_NOMB_PROV = oxfs.oBe.ALF_NOMB;
row.ALF_RUCC_PROV = oxfs.oBe.ALF_NUME_IDEN;
gdvExpens.RefreshRow(gdvExpens.FocusedRowHandle);
}
}
开发者ID:isvelarder,项目名称:sispeper,代码行数:13,代码来源:xfExpNationalization.cs
示例17: comboBoxEditSlides_ButtonClick
private void comboBoxEditSlides_ButtonClick(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Index == 1)
{
int selectedIndex = comboBoxEditSlides.SelectedIndex + 1;
if (selectedIndex >= _previewImages.Count)
selectedIndex = 0;
comboBoxEditSlides.SelectedIndex = selectedIndex;
}
else if (e.Button.Index == 2)
{
int selectedIndex = comboBoxEditSlides.SelectedIndex - 1;
if (selectedIndex < 0)
selectedIndex = _previewImages.Count - 1;
comboBoxEditSlides.SelectedIndex = selectedIndex;
}
}
开发者ID:w01f,项目名称:VolgaTeam.Dashboard,代码行数:17,代码来源:PreviewGroupControl.cs
示例18: OnDetailViewButtonClick
private void OnDetailViewButtonClick(object sender, ButtonPressedEventArgs e)
{
if (e.Button == DetailViewButton)
{
IObjectSpace objectSpace = base.Helper.Application.CreateObjectSpace();
if (this.ControlValue != null)
{
object @object = objectSpace.GetObject(this.ControlValue);
View view = null;
if (base.Model != null)
{
view = base.Helper.Application.CreateDetailView(objectSpace, @object);
}
ShowViewParameters showViewParameters = new ShowViewParameters(view);
showViewParameters.TargetWindow = TargetWindow.Default;
base.Helper.Application.ShowViewStrategy.ShowView(showViewParameters, new ShowViewSource(null, null));
}
}
}
开发者ID:LSTANCZYK,项目名称:devexpress_xaf_aurum,代码行数:19,代码来源:ExtLookupPropertyEditor.cs
示例19: repositoryItemButtonEdit_ButtonClick
private void repositoryItemButtonEdit_ButtonClick(object sender, ButtonPressedEventArgs e)
{
var page = gridViewPages.GetFocusedRow() as LibraryPage;
if (page == null) return;
var focusedRowHandle = gridViewPages.FocusedRowHandle;
switch (e.Button.Index)
{
case 0:
focusedRowHandle = gridViewPages.FocusedRowHandle > 0 ? gridViewPages.FocusedRowHandle - 1 : 0;
Library.Pages.UpItem(page);
break;
case 1:
focusedRowHandle = gridViewPages.FocusedRowHandle < gridViewPages.RowCount - 1 ? gridViewPages.FocusedRowHandle + 1 : gridViewPages.RowCount - 1;
Library.Pages.DownItem(page);
break;
}
LoadPages();
gridViewPages.FocusedRowHandle = focusedRowHandle;
}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:19,代码来源:FormPages.cs
示例20: buttonEditNewExtension_ButtonClick
private void buttonEditNewExtension_ButtonClick(object sender, ButtonPressedEventArgs e)
{
var newExtension = buttonEditNewExtension.EditValue as String;
if (String.IsNullOrEmpty(newExtension))
{
MainController.Instance.PopupMessages.ShowWarning("Extension not set");
return;
}
newExtension = newExtension.Trim().ToLower();
if (Library.Settings.AutoWidgets.Any(widget => widget.Extension.Equals(newExtension)))
{
MainController.Instance.PopupMessages.ShowWarning("Auto Widter is existed for this extension already");
return;
}
var autoWidget = new AutoWidget();
autoWidget.Extension = newExtension;
Library.Settings.AutoWidgets.Add(autoWidget);
buttonEditNewExtension.EditValue = null;
LoadData();
}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:20,代码来源:FormAutoWidgets.cs
注:本文中的ButtonPressedEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论