private void toolStripButton5_Click(object sender, EventArgs e) { using (AccountDialog form = new AccountDialog(null)) { DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { LoadData(); } } }
private void toolStripMenuItem5_Click_1(object sender, EventArgs e) { using (AccountDialog form = new AccountDialog(null)) { DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { toolStripMenuItem6_Click_1(null, null); } } }