public static frmCreateLoan GetChildInstance() { if (m_frmCreateLoanForm == null) //if not created yet, Create an instance { m_frmCreateLoanForm = new frmCreateLoan(); } return(m_frmCreateLoanForm); //just created or created earlier. Return it }
private void frmCreateLoan_FormClosed(object sender, FormClosedEventArgs e) { m_frmCreateLoanForm = null; }