Пример #1
0
 public static TransactionForm GetInstance(User user)
 {
     if (instance == null)
     {
         instance = new TransactionForm(user);
     }
     return(instance);
 }
Пример #2
0
 private void TransactionForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     instance = null;
 }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     TransactionForm.GetInstance(user).Show(this);
     TransactionForm.GetInstance(user).Focus();
 }