Exemple #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();
        }
Exemple #4
0
 private void buttonGoProducts_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["ProductOperations"] == null)
     {
         Form ProductOperations = new ProductForm();
         ProductOperations.Show();
     }
 }
Exemple #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);
 }
Exemple #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;
     }
 }
Exemple #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();
 }
Exemple #9
0
 private void productsToolStripMenuItemClick(object sender, System.EventArgs e)
 {
     ProductForm.Show();
     ProductForm.WindowState = FormWindowState.Maximized;
 }
Exemple #10
0
        private void button1_Click(object sender, EventArgs e)
        {
            ProductForm prdForm = new ProductForm();

            prdForm.Show();
        }