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