本文整理汇总了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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}
示例9: bbtnColorMixer_ItemClick
private void bbtnColorMixer_ItemClick(object sender, ItemClickEventArgs e)
{
using (ColorWheelForm showColorMixer = new ColorWheelForm())
{
showColorMixer.ShowDialog(this);
}
}
示例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;
}
示例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;
}
示例12: barBtnLogout_ItemClick
private void barBtnLogout_ItemClick(object sender, ItemClickEventArgs e)
{
Program.userAuthenticate = false;
Program.cashier = null;
Application.Restart();
this.Close();
}
示例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);
}
}
示例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);
}
示例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;
}