public static RMBalanceForm CreateInstance() { if (RMBalanceFrm == null || RMBalanceFrm.IsDisposed) { RMBalanceFrm = new RMBalanceForm(); } return(RMBalanceFrm); }
private void RMBalance_TMSI_Click(object sender, EventArgs e) { RMBalanceForm RMBalanceFrm = RMBalanceForm.CreateInstance(); RMBalanceFrm.Activate(); RMBalanceFrm.WindowState = FormWindowState.Normal; RMBalanceFrm.MdiParent = this; RMBalanceFrm.Show(); }