private void إضافةحسابجديدToolStripMenuItem_Click(object sender, EventArgs e) { using (addnewacccounttreeitem myform = new addnewacccounttreeitem()) { myform.ShowDialog(); } }
private void new_btn_Click(object sender, EventArgs e) { this.Hide(); using (addnewacccounttreeitem myform = new addnewacccounttreeitem()) { myform.ShowDialog(); } this.Close(); }