private void tileView2_ContextButtonClick(object sender, DevExpress.Utils.ContextItemClickEventArgs e) { string GroupID = e.Item.Tag.ToString(); if (e.Item.Name == "contextButton1") { ContextBtnLeftEdit_Click(GroupID); } else if (e.Item.Name == "contextButton2") { ContextBtnSort_Click(GroupID); } }
private void tileView1_ContextButtonClick(object sender, DevExpress.Utils.ContextItemClickEventArgs e) { string FoodID = e.Item.Tag.ToString(); if (e.Item.Name == "contextButton1") { if (XtraMessageBox.Show(FoodID + "下架", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { ContextBtnOffShelf_Click(FoodID); } } else if (e.Item.Name == "contextButton2") { ContextBtnDelete_Click(FoodID); } else if (e.Item.Name == "contextButton3") { ContextBtnEdit_Click(FoodID); } }
private void peImage_ContextButtonClick(object sender, DevExpress.Utils.ContextItemClickEventArgs e) { if (e.Item.Name == "cbLoad") { if (this.openFileDialog1.ShowDialog() != DialogResult.OK) { return; } Watermark.ImageUri = this.openFileDialog1.FileName; this.peImage.EditValue = Image.FromFile(this.openFileDialog1.FileName); RaiseWatermarkParamsChanged(); } else if (e.Item.Name == "cbDelete") { Watermark.ImageUri = null; Image img = this.peImage.Image; this.peImage.EditValue = null; if (img != null) { img.Dispose(); } } }
private void Pic_zhuotie3_ContextButtonClick(object sender, DevExpress.Utils.ContextItemClickEventArgs e) { AllNoChecked(); (this.Pic_zhuotie3.Properties.ContextButtons[0] as CheckContextButton).Checked = true; whocheck = 3; }