예제 #1
0
 //implenting singelton pattern to this class
 public static AllLoansForm Instance(Member member)
 {
     if (instance == null)
     {
         instance = new AllLoansForm();
     }
     instance.SetAsNewWindow(member);
     return(instance);
 }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Utils.SwitchBetweenWindows(this, AllLoansForm.Instance(member));
 }