Ejemplo n.º 1
0
 //implenting singelton pattern to this class
 public static CreateLoan Instance(Member member = null)
 {
     if (instance == null)
     {
         instance = new CreateLoan();
     }
     instance.SetAsNewWindow(member);
     return(instance);
 }
Ejemplo n.º 2
0
 private void LoanBook_Click(object sender, EventArgs e)
 {
     Utils.SwitchBetweenWindows(this, CreateLoan.Instance());
 }