public void SubMenu_Receive() { frmCreate frm = new frmCreate(_core, null); DialogResult res = frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { _pledgeno = frm.PledgeNo; frm.Dispose(); ReadRecord(_pledgeno); } }
public void SubMenu_Edit() { frmCreate frm = new frmCreate(_core, null); Result res = frm.Read(_pledgeno); if (res != null && res.ResultNo == 0) { DialogResult dres = frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { _pledgeno = frm.PledgeNo; frm.Dispose(); ReadRecord(_pledgeno); } } }