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