public static SMTCosting GetInstance() { if (smtcform == null || smtcform.IsDisposed) { smtcform = new SMTCosting(); } return(smtcform); }
private void barButtonItem计算_ItemClick(object sender, ItemClickEventArgs e) { SMTCosting Frm = SMTCosting.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); }
private void SMTCost_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; SMTCosting Frm = SMTCosting.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); }