예제 #1
0
 private void btn_Update(object sender, EventArgs e)
 {
     if (this.dataGridView1.Rows.Count > 0)
     {
         if (this.dataGridView1.SelectedRows[0].Cells[1].Value.ToString().Substring(0, 2) == "01" || this.dataGridView1.SelectedRows[0].Cells[1].Value.ToString().Substring(0, 2) == "05")
         {
             return;
         }
         if ((this.MdiParent as MForm1).OpenChildForm(typeof(A_CLIENT_OP)))
             return;
         A_CLIENT_OP cm = new A_CLIENT_OP(3, this, this.dataGridView1.SelectedRows[0]);
         cm.MdiParent = this.MdiParent;
         cm.Show();
     }
 }
예제 #2
0
 private void btn_Add(object sender, EventArgs e)
 {
     if (ctype)
     {
         if ((this.MdiParent as MForm1).OpenChildForm(typeof(A_CLIENT_OP)))
             return;
         A_CLIENT_OP cm = new A_CLIENT_OP(1, this);
         cm.MdiParent = this.MdiParent;
         cm.Show();
     }
     else
     {
         if ((this.MdiParent as MForm1).OpenChildForm(typeof(A_CLIENT_OP)))
             return;
         A_CLIENT_OP cm = new A_CLIENT_OP(1, this);
         cm.MdiParent = this.MdiParent;
         cm.Show();
     }
 }