Beispiel #1
0
 public void Insert(object sender, EventArgs e)
 {
     if (((FrmMAIN)this.MdiParent).ActiveMdiChild == this)
     {
         FrmMaterialCostPop frm = new FrmMaterialCostPop(InsertOrUpdate.insert);
         frm.ShowDialog();
         Reset(null, null);
     }
 }
Beispiel #2
0
 public void Update(object sender, EventArgs e)
 {
     if (((FrmMAIN)this.MdiParent).ActiveMdiChild == this)
     {
         string uid = CheckedList();
         if (uid.Length < 1)
         {
             return;
         }
         if (uid.Contains("@"))
         {
             MessageBox.Show("수정할 품목 하나를 선택하세요.", "품목 선택", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             return;
         }
         FrmMaterialCostPop frm = new FrmMaterialCostPop(InsertOrUpdate.update, uid);
         frm.ShowDialog();
         Reset(null, null);
     }
 }