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