public static WaterElectricityInsert GetInstance() { if (weiform == null || weiform.IsDisposed) { weiform = new WaterElectricityInsert(); } return(weiform); }
private void barButtonItem新增_ItemClick(object sender, ItemClickEventArgs e) { WaterElectricityInsert Frm = WaterElectricityInsert.GetInstance(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); }