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