Exemplo n.º 1
0
 private void list_DoubleClick(object sender, EventArgs e)
 {
     if (PicPath != null)
     {
         if (this.key != null)
         {
             终检 f = new 终检(EndCheckFrm.dic[this.key].AndoridPicPath);
             f.AndoridServerPicPath = this.AndoridServerPicPath;
             f.IsModify             = true;
             f.ModifyKey            = this.key;
             DialogResult r = f.ShowDialog();
             if (r == System.Windows.Forms.DialogResult.OK)
             {
                 EndCheckFrm.dic[this.key] = f;
                 this.label1.Text          = EndCheckFrm.dic[this.key].ZJPartConfigName;
                 this.label2.Text          = EndCheckFrm.dic[this.key].ZJOptionConfigName;
                 this.label3.Text          = EndCheckFrm.dic[this.key].ZJFlawName;
                 this.label4.Text          = EndCheckFrm.dic[this.key].Remark;
             }
             if (r == System.Windows.Forms.DialogResult.No)
             {
                 EndCheckFrm.dic.Remove(f.Key);
                 deletePic(PicPath);
             }
         }
         else
         {
             MessageBox.Show("请先单机添加");
         }
     }
 }
Exemplo n.º 2
0
 private void list_Click(object sender, EventArgs e)
 {
     if (PicPath != null)
     {
         终检 f = new 终检(PicPath);
         f.AndoridServerPicPath = this.AndoridServerPicPath;
         f.IsModify             = false;
         DialogResult r = f.ShowDialog();
         if (r == System.Windows.Forms.DialogResult.OK)
         {
             EndCheckFrm.dic.Add(f.Key, f);
             this.key         = f.Key;
             this.list.Click -= list_Click;
             this.label1.Text = EndCheckFrm.dic[this.key].ZJPartConfigName;
             this.label2.Text = EndCheckFrm.dic[this.key].ZJOptionConfigName;
             this.label3.Text = EndCheckFrm.dic[this.key].ZJFlawName;
             this.label4.Text = EndCheckFrm.dic[this.key].Remark;
         }
         if (r == System.Windows.Forms.DialogResult.No)
         {
             EndCheckFrm.dic.Remove(f.Key);
         }
     }
 }