Пример #1
0
 public static AccountViewList GetInstance()
 {
     if (singleton == null)
     {
         singleton = new AccountViewList();
     }
     return(singleton);
 }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            AccountViewList avl = AccountViewList.GetInstance();

            avl.MdiParent = this.MdiParent;
            avl.Show();
            this.Close();
        }
Пример #3
0
 private void AccountViewList_FormClosed(object sender, FormClosedEventArgs e)
 {
     singleton = null;
 }