当前位置: 首页>>代码示例>>C#>>正文


C# ButtonPressedEventArgs类代码示例

本文整理汇总了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();
 }
开发者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


注:本文中的ButtonPressedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。