private void btnItemSPGL_Click(object sender, EventArgs e) { //商品管理 FrmProduct frm = new FrmProduct(); frm.ShowDialog(); }
private void sảnPhẩmToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new FrmProduct(); frm.Show(this); this.Hide(); }
private void damagedItemMenuItem_Click(object sender, EventArgs e) { Gvar.invno = "0"; if (Gvar._SuperUserid == 1) { Gvar.frm_priv = "111"; } else { if (mnuCashPurchase.Tag == null) { Gvar.frm_priv = "100"; } else { Gvar.frm_priv = mnuCashPurchase.Tag.ToString(); } } Gvar._trntype = 11; Form childForm = new FrmProduct(); childForm.MdiParent = this; childForm.Text = "Product Damaged Entry Screen"; childForm.Show(); }
private void MnuProduct_Click(object sender, EventArgs e) { FrmProduct frm = new FrmProduct(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.WindowState = FormWindowState.Normal; frm.Show(); }
public MainForm() { InitializeComponent(); CustomerForm = new FrmCustomer(); ProductForm = new FrmProduct(); CategoryForm = new FrmCategory(); SellProductForm = new FrmSellProduct(); OrderForm = new FrmOrders(); SupplierForm = new FrmSupplier(); }
//private void OpenForm2<MiForm>() where MiForm : Form, new() //{ // Form form; // //busca en la coleccion el formulario // form = panelFill.Controls.OfType<MiForm>().FirstOrDefault(); // if (form == null)//si formulario/instancia no existe // { // form = new MiForm // { // TopLevel = false, // FormBorderStyle = FormBorderStyle.None, // Dock = DockStyle.Fill // }; // panelFill.Controls.Add(form); // panelFill.Tag = form; // form.Show(); // form.BringToFront();//traer al frente // } // else // si existe // { // form.BringToFront(); // form.Dock = DockStyle.Fill; // } //} #endregion private void BtnProduct_Click(object sender, EventArgs e) { if ((lblTime.Visible || lblDate.Visible || panelFill_2.Visible) == true) { lblTime.Visible = false; lblDate.Visible = false; panelFill_2.Visible = false; } //OpenForm(new FrmProduct()); OpenForm(FrmProduct.GetInstanceProd()); }
private void toolStripButton3_Click(object sender, EventArgs e) {//商品管理 FrmProduct frm = new FrmProduct(); frm.ShowDialog(); }
public static Form GetFormSelected(MenuOptionName option) { Form formSelected = null; var catalog = new CatalogBase(); switch (option) { case MenuOptionName.SALES: { formSelected = new FrmSale(); break; } case MenuOptionName.BRANDS: { formSelected = new FrmBrands(new Brand(catalog)); break; } case MenuOptionName.CATEGORIES: { formSelected = new FrmCategories(new Category(catalog)); break; } case MenuOptionName.INVOICEBLOCK: { formSelected = new FrmInvoiceBlock(); break; } case MenuOptionName.MODELS: { formSelected = new FrmModels(new Model(catalog)); break; } case MenuOptionName.PAYMENTMETHODS: { formSelected = new FrmPaymentMethods(new PaymentMethod(catalog)); break; } case MenuOptionName.PRODUCTS: { formSelected = new FrmProduct(); break; } case MenuOptionName.TYPEINVOICES: { formSelected = new FrmTypeInvoice(new TypeInvoice(catalog)); break; } case MenuOptionName.USERS: { formSelected = new FrmUsers(new User(catalog)); break; } case MenuOptionName.USERSADD: { formSelected = new FrmAddReplaceUser(new AddReplaceUser(new Role()), null, new User(catalog)); break; } case MenuOptionName.USERSDETAIL: { formSelected = new FrmDetailUser(new DetailUser(), null); break; } } return(formSelected); }