/// <summary> /// หน้าต่างสินค้า /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void สนคาToolStripMenuItem_Click(object sender, EventArgs e) { ManageProductForm mpf = new ManageProductForm(); mpf.MdiParent = this; mpf.Show(); }
private void เพมแกไขฐานสนคาToolStripMenuItem_Click(object sender, EventArgs e) { //Thread t = new Thread(LoadingThread); //t.Start(); //FormCollection fc = Application.OpenForms; //foreach (Form frm in fc) //{ // //iterate through // if (frm.Name == "ManageProductForm") // { // MessageBox.Show("คุณเปิดหน้าต่างนี้อยู่"); // return; // } //} ManageProductForm mpf = new ManageProductForm(); mpf.MdiParent = this; mpf.Show(); }