Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Utils.SwitchBetweenWindows(this, AllLoansForm.Instance(member));
 }