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