Beispiel #1
0
        private void btnCancle_Click(object sender, EventArgs e)
        {
            var form = new ProductForm(logic);

            form.Show();
            Close();
        }
        private void btn_product_Click(object sender, EventArgs e)
        {
            ProductForm productForm = new ProductForm();

            productForm.Show();
            this.Hide();
        }
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataSet1.ProductDataTable dt = new DataSet1.ProductDataTable();
            dt = (DataSet1.ProductDataTable)SetProductInfo(prod);
            ProductForm rf = new ProductForm(dt);

            rf.Show();
        }
Beispiel #4
0
 private void buttonGoProducts_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["ProductOperations"] == null)
     {
         Form ProductOperations = new ProductForm();
         ProductOperations.Show();
     }
 }
Beispiel #5
0
 private void btnProducts_Click(object sender, EventArgs e)
 {
     HideOtherForm("FrmProduct");
     if (IsAlreadyOpened("FrmProduct"))
     {
         return;
     }
     ProductForm.MdiParent = this;
     ProductForm.Show();
     ProductForm.Location = new Point(150, 20);
 }
Beispiel #6
0
 private void productosToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         ProductForm frmProduct = new ProductForm();
         frmProduct.Show();
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Beispiel #7
0
        private void productToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MdiChildren.Length > 0)
            {
                return;
            }

            var product = new ProductForm
            {
                MdiParent = this
            };

            product.Show();
        }
 private void ProductToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ProductForm productForm = new ProductForm();
     productForm.MdiParent = this;
     productForm.Show();
 }
Beispiel #9
0
 private void productsToolStripMenuItemClick(object sender, System.EventArgs e)
 {
     ProductForm.Show();
     ProductForm.WindowState = FormWindowState.Maximized;
 }
Beispiel #10
0
        private void button1_Click(object sender, EventArgs e)
        {
            ProductForm prdForm = new ProductForm();

            prdForm.Show();
        }