コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 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();
         }
     }
 }
コード例 #4
0
 private void Pic_zhuotie3_ContextButtonClick(object sender, DevExpress.Utils.ContextItemClickEventArgs e)
 {
     AllNoChecked();
     (this.Pic_zhuotie3.Properties.ContextButtons[0] as CheckContextButton).Checked = true;
     whocheck = 3;
 }