public static MdiChildForAllAndEstimate GetForm() { if (_frmForAllAndEstimate == null) { _frmForAllAndEstimate = new MdiChildForAllAndEstimate(); } return(_frmForAllAndEstimate); }
private void allCharactorAndEstimateToolStripMenuItem_Click(object sender, EventArgs e) { MdiChildForAllAndEstimate frmChildForAllCharactor = MdiChildForAllAndEstimate.GetForm(); frmChildForAllCharactor.MdiParent = this; frmChildForAllCharactor.WindowState = FormWindowState.Maximized; frmChildForAllCharactor.Show(); }
private void MdiChildForAllAndEstimate_FormClosing(object sender, FormClosingEventArgs e) { _frmForAllAndEstimate.Close(); _frmForAllAndEstimate = null; }
private void Dispose() { Dispose(true); _frmForAllAndEstimate = null; }