public static AccountViewList GetInstance() { if (singleton == null) { singleton = new AccountViewList(); } return(singleton); }
private void button1_Click(object sender, EventArgs e) { AccountViewList avl = AccountViewList.GetInstance(); avl.MdiParent = this.MdiParent; avl.Show(); this.Close(); }
private void AccountViewList_FormClosed(object sender, FormClosedEventArgs e) { singleton = null; }