示例#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();
 }