Пример #1
0
 public void Insert(object sender, EventArgs e)
 {
     if (((FrmMAIN)this.MdiParent).ActiveMdiChild == this)
     {
         FrmSalesCostPop frm = new FrmSalesCostPop(InsertOrUpdate.insert);
         frm.ShowDialog();
         Reset(null, null);
     }
 }
Пример #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;
         }
         FrmSalesCostPop frm = new FrmSalesCostPop(InsertOrUpdate.update, uid);
         frm.ShowDialog();
         Reset(null, null);
     }
 }