private void CustomerUnitManage_Click(object sender, EventArgs e) { if (!CheckDog()) { return; } FormCollection fc = Application.OpenForms; if (fc["CustomerUnitManageForm"] == null) { CustomerUnitManageForm customerUnitManageForm = new CustomerUnitManageForm(); customerUnitManageForm.ShowDialog(); } else { fc["CustomerUnitManageForm"].Select(); } //if (CreateTab("客户单位管理", "客户单位管理")) //{ // CustomerUnitManageForm customerUnitManageForm = new CustomerUnitManageForm(); // SetTab(customerUnitManageForm); //} }
private void btnAdd_Click(object sender, EventArgs e) { CustomerUnitManageForm cum = new CustomerUnitManageForm(); cum.ShowDialog(); BandingDgvCustomer(); }