Exemplo n.º 1
0
        private void editProduct_Click(object sender, EventArgs e)
        {
            EditProduct ep = new EditProduct();

            ep.Show();
            File.WriteAllText(@"D:\dsadsa.txt", "dsnfdasbnfbadfkjbafkjbdas");
        }
Exemplo n.º 2
0
        private void PictureBox10_Click(object sender, EventArgs e)
        {
            if (dataGridView2.CurrentCell != null)
            {
                int i = dataGridView2.CurrentCell.RowIndex;

                EditProduct p = new EditProduct(levelProduct[i]);
                p.FormClosing += new FormClosingEventHandler(updAdminProductActions);
                p.Show();
            }
        }
Exemplo n.º 3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            frmEditProduct EditProduct;

            if ((txtProdId.Text == "") || (lstProd.Items.Count == 0))
            {
                EditProduct = new frmEditProduct(cmbProdType.Text);
            }
            else
            {
                EditProduct = new frmEditProduct(txtProdId.Text, txtProdType.Text, txtProd.Text, txtPrice.Text, txtDiscount.Text);
            }
            EditProduct.MdiParent = this.MdiParent;
            EditProduct.Show();
            this.Enabled = false;
        }
Exemplo n.º 4
0
        private void EditProduct_OnClick(object sender, RoutedEventArgs e)
        {
            var editProductForm = new EditProduct();

            editProductForm.Show();
        }