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