本文整理汇总了C#中ButtonPressedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ButtonPressedEventArgs类的具体用法?C# ButtonPressedEventArgs怎么用?C# ButtonPressedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ButtonPressedEventArgs类属于命名空间,在下文中一共展示了ButtonPressedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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);
}
示例6: gridLookUpEditProduct_ButtonPressed
private void gridLookUpEditProduct_ButtonPressed(object sender, ButtonPressedEventArgs e)
{
if (e.Button.Index == 1)
{
var product = new FormInsertOrUpdateProduct(null);
product.ShowDialog();
LoadProductForGridLookUp();
}
}
示例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;
}
}
示例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;
}
}
}
示例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;
}
}
示例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;
}
}
示例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();
}
}
示例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;
}
}
示例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();
}
示例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;
}
}
示例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();
}