예제 #1
0
        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);
            //}
        }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            CustomerUnitManageForm cum = new CustomerUnitManageForm();

            cum.ShowDialog();
            BandingDgvCustomer();
        }