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


C# ItemClickEventArgs类代码示例

本文整理汇总了C#中ItemClickEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ItemClickEventArgs类的具体用法?C# ItemClickEventArgs怎么用?C# ItemClickEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ItemClickEventArgs类属于命名空间,在下文中一共展示了ItemClickEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnItemClick

 /// <summary>
 /// Called when an item on the list is clicked. This will execute the <see cref="P:Command"/> if
 /// any, passing as a command parameter, the data context of the clicked item.
 /// </summary>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">The <see cref="ItemClickEventArgs"/> instance containing the event data.</param>
 private void OnItemClick(object sender, ItemClickEventArgs e)
 {
     if (this.Command != null && this.Command.CanExecute(e.ClickedItem))
     {
         this.Command.Execute(e.ClickedItem);
     }
 }
开发者ID:notour,项目名称:WygwamToolkit,代码行数:13,代码来源:ExtendedListView.cs

示例2: barButtonItem3_ItemClick

 private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
 {
     mainPanel.Controls.Clear();
     ucRule_Season ucDieuLe = new ucRule_Season();
     ucDieuLe.Dock = DockStyle.Fill;
     mainPanel.Controls.Add(ucDieuLe);
 }
开发者ID:caontfuky,项目名称:v-league-management,代码行数:7,代码来源:frmMain.cs

示例3: catch_ItemClick

 private void catch_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         var bitmap = pictureEditFile.Image as Bitmap;
         var pattern = pictureEditPattern.Image as Bitmap;
         if (bitmap == null || pattern == null) throw new Exception("Нет изображения");
         using (var builder = new CatchBuilder(pattern))
         {
             Matrix<double> matrix = builder.Catch(bitmap);
             int x, y;
             double value;
             builder.Max(matrix, out x, out y, out value);
             propertyGridControl1.SelectedObject = new Info {X = x, Y = y, Value = value};
             using (Graphics graphics = Graphics.FromImage(bitmap))
             {
                 var pen = new Pen(Color.Red);
                 graphics.DrawRectangle(pen, x, y, pattern.Width, pattern.Height);
             }
         }
     }
     catch (Exception exception)
     {
         XtraMessageBox.Show(exception.Message);
     }
 }
开发者ID:SlimSalamin,项目名称:FFTTools,代码行数:26,代码来源:MainForm.cs

示例4: barButtonAdd_ItemClick

        private async void barButtonAdd_ItemClick(object sender, ItemClickEventArgs e)
        {
            try
            {
                if (applicationControl != null)
                {
                    await applicationControl.NewItemButtonClicked();
                }
                else
                {
                    SettingsApplication newApplication = new SettingsApplication();

                    ApplicationEditForm form = new ApplicationEditForm(newApplication, settingsManager);

                    if (form.ShowDialog() == DialogResult.OK)
                    {
                        if (await settingsManager.CreateApplicationAsync(newApplication.Name, newApplication.Description))
                        {
                            await GetApplications();
                        }
                    }
                }
            }
            catch (SettingsException ex)
            {
                MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:meviuswg,项目名称:SettingsAPI,代码行数:28,代码来源:MainForm.cs

示例5: RibbonButtonsClick

 void RibbonButtonsClick(object sender, ItemClickEventArgs name)
 {
     switch (name.Item.Name.ToUpper())
     {
             //  BNew BSave BSaveandClose BSaveandNew BClear BDelete BPrint BNotes BHold BMovePrev BMoveNext
         case "BNEW":
             DoNew();
             break;
         case "BSAVE":
             DoSave();
             break;
         case "BSAVEANDCLOSE":
             DoSaveClose();
             break;
         case "BSAVEANDNEW":
             DoSaveNew();
             break;
         case "BMOVEPREV":
             DoMovePrev();
             break;
         case "BMOVENEXT":
             DoMoveNext();
             break;
     }
 }
开发者ID:rehman922,项目名称:VIRETAIL,代码行数:25,代码来源:Storemast.cs

示例6: btnHosobenhan_ItemClick

 private void btnHosobenhan_ItemClick(object sender, ItemClickEventArgs e)
 {
     pnHienthi.Controls.Clear();
     ucKhambenhngoaitru Benhan = new ucKhambenhngoaitru();
     pnHienthi.Controls.Add(Benhan);
     Benhan.Dock = System.Windows.Forms.DockStyle.Fill;
 }
开发者ID:sivarajankumar,项目名称:hmsteam14,代码行数:7,代码来源:frmGiaodienchinh.cs

示例7: btnNhanvien_ItemClick

 private void btnNhanvien_ItemClick(object sender, ItemClickEventArgs e)
 {
     pnHienthi.Controls.Clear();
     ucNhanvien nhanvien = new ucNhanvien();
     pnHienthi.Controls.Add(nhanvien);
     nhanvien.Dock = System.Windows.Forms.DockStyle.Fill;
 }
开发者ID:sivarajankumar,项目名称:hmsteam14,代码行数:7,代码来源:frmGiaodienchinh.cs

示例8: btnHoaDon_ItemClick

 private void btnHoaDon_ItemClick(object sender, ItemClickEventArgs e)
 {
     usrHoaDon usr = new usrHoaDon();
     panelControl1.Controls.Clear();
     panelControl1.Controls.Add(usr);
     usr.Dock = DockStyle.Fill;
 }
开发者ID:WendyAnne,项目名称:Hotel-software,代码行数:7,代码来源:frmMain.cs

示例9: bbtnColorMixer_ItemClick

 private void bbtnColorMixer_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (ColorWheelForm showColorMixer = new ColorWheelForm())
     {
         showColorMixer.ShowDialog(this);
     }
 }
开发者ID:caontfuky,项目名称:v-league-management,代码行数:7,代码来源:frmHome.cs

示例10: btnDSPhong_ItemClick

 private void btnDSPhong_ItemClick(object sender, ItemClickEventArgs e)
 {
     usrDanhSachPhong usr = new usrDanhSachPhong();
     panelControl1.Controls.Clear();
     panelControl1.Controls.Add(usr);
     usr.Dock = DockStyle.Fill;
 }
开发者ID:WendyAnne,项目名称:Hotel-software,代码行数:7,代码来源:frmMain.cs

示例11: btnGia_ItemClick

 private void btnGia_ItemClick(object sender, ItemClickEventArgs e)
 {
     usrBangGia usr = new usrBangGia();
     panelControl1.Controls.Clear();
     panelControl1.Controls.Add(usr);
     usr.Dock = DockStyle.Fill;
 }
开发者ID:WendyAnne,项目名称:Hotel-software,代码行数:7,代码来源:frmMain.cs

示例12: barBtnLogout_ItemClick

 private void barBtnLogout_ItemClick(object sender, ItemClickEventArgs e)
 {
     Program.userAuthenticate = false;
     Program.cashier = null;
     Application.Restart();
     this.Close();
 }
开发者ID:mrbadao,项目名称:GreenBeePrinter,代码行数:7,代码来源:frmMain.cs

示例13: barBtnSave_ItemClick

 private void barBtnSave_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (chkCheckValidAll.CheckState == CheckState.Unchecked)
     {
         var strMessageChangePass = string.Format(SEDConst.CHANGEPASS_MESSAGE_CHECK_VALID, chkCheckValidAll.Text);
         SEDFuncCall.MessageWarning(strMessageChangePass, SEDConst.TITLE_WARNING);
     }
     try
     {
         using (var permissionContext = new PermissionDataContext())
         {
             var accountNew = new Account
             {
                 FullName = txtFullName.Text,
                 Address = txtAddress.Text,
                 Phone = txtPhone.Text,
                 UserName = txtUserName.Text,
                 Password = new SEDDataEncrypt().EncodeOneWay(txtPassword.Text),
                 Email = txtEmail.Text,
                 Permission = (chkSetPermission.Checked ? 1 : 0),
                 Status = (chkSetStatus.Checked ? 1 : 0)
             };
             permissionContext.Accounts.InsertOnSubmit(accountNew);
             permissionContext.SubmitChanges();
             SEDFuncCall.MessageSuccess(SEDConst.ACCOUNTCRUD_MESSAGE_CREATE_SUCCSESS
                 , SEDConst.TITLE_NOTE);
         }
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, SEDConst.TITLE_WARNING, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
开发者ID:NguyenManh94,项目名称:CrawlerDataNP,代码行数:33,代码来源:A05FrmAccoutsCrud.cs

示例14: barBtnReload_ItemClick

 private void barBtnReload_ItemClick(object sender, ItemClickEventArgs e)
 {
     TextEdit[] arrTextEdit = {txtFullName, txtAddress, txtEmail, txtPhone, txtUserName, txtPassword};
     CheckBox[] arrCheckBox = {chkValidEmail, chkValidPassword, chkSetPermission, chkSetStatus, chkCheckValidAll};
     SEDFuncCall.SetTextEditValue(arrTextEdit, SEDConst.STRING_EMPTY);
     SEDFuncCall.SetCheckBoxStatus(arrCheckBox, CheckState.Unchecked);
 }
开发者ID:NguyenManh94,项目名称:CrawlerDataNP,代码行数:7,代码来源:A05FrmAccoutsCrud.cs

示例15: btnBaocao_ItemClick

 private void btnBaocao_ItemClick(object sender, ItemClickEventArgs e)
 {
     pnHienthi.Controls.Clear();
     ucBaocao baocao = new ucBaocao();
     pnHienthi.Controls.Add(baocao);
     baocao.Dock = System.Windows.Forms.DockStyle.Fill;
 }
开发者ID:sivarajankumar,项目名称:hmsteam14,代码行数:7,代码来源:frmGiaodienchinh.cs


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