コード例 #1
0
ファイル: MainForm.cs プロジェクト: happly123/canyinTest
        private void ManufacturerManage_Click(object sender, EventArgs e)
        {
            if (!CheckDog())
            {
                return;
            }

            FormCollection fc = Application.OpenForms;

            if (fc["ManufacturerManageForm"] == null)
            {
                ManufacturerManageForm manufacturerManageForm = new ManufacturerManageForm();
                manufacturerManageForm.ShowDialog();
            }
            else
            {
                fc["ManufacturerManageForm"].Select();
            }

            //if (CreateTab("生产厂家管理", "生产厂家管理"))
            //{
            //    ManufacturerManageForm manufacturerManageForm = new ManufacturerManageForm();

            //    SetTab(manufacturerManageForm);
            //}
        }
コード例 #2
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            ManufacturerManageForm mmf = new ManufacturerManageForm();

            mmf.ShowDialog();
            BandingDgv();
        }