public void Insert(object sender, EventArgs e)
 {
     if (((FrmMAIN)this.MdiParent).ActiveMdiChild == this)
     {
         FrmSalesCostPop frm = new FrmSalesCostPop(InsertOrUpdate.insert);
         frm.ShowDialog();
         Reset(null, null);
     }
 }
 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);
     }
 }