Beispiel #1
0
 private async void btnEdit_Click(object sender, EventArgs e)
 {
     Model.Orders id = (Model.Orders)dgvOrders.SelectedRows[0].DataBoundItem;
     var model = await _ordersService.GetById<Model.Orders>(id.Id);
     frmProducts frm = new frmProducts(model);
     frm.ShowDialog();
 }
Beispiel #2
0
        private void btnList_Click(object sender, EventArgs e)
        {
            this.Close();

            frmProducts frm = new frmProducts(_orders);
            frm.ShowDialog();
        }
Beispiel #3
0
        private void btnProducts_Click(object sender, EventArgs e)
        {
            frmProducts viewForm = new frmProducts();

            viewForm.Show();
            this.Hide();
        }
Beispiel #4
0
        private void msnProduct_List_Click(object sender, EventArgs e)
        {
            var f = new frmProducts();

            f.MdiParent = this;
            f.Show();
        }
Beispiel #5
0
        private void productToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmProducts viewForm = new frmProducts();

            viewForm.Show();
            this.Hide();
        }
        public static frmProducts CreateInstance()
        {
            frmProducts theInstance = new frmProducts();

            theInstance.Form_Load();
            return(theInstance);
        }
Beispiel #7
0
        private void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmProducts frm = new frmProducts();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }
        private void productTab_Click(object sender, EventArgs e)
        {
            mainpanel.Controls.Clear();
            frmProducts myForm = new frmProducts();

            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.TopLevel        = false;
            myForm.AutoScroll      = true;
            mainpanel.Controls.Add(myForm);
            myForm.Show();
        }
        private void productTool_Click(object sender, EventArgs e)
        {
            ManagefrmView(productTool, panelProduct);

            var frmProduct = new frmProducts(adminDto.Id);

            frmProduct.TopLevel        = false;
            frmProduct.AutoScroll      = true;
            frmProduct.FormBorderStyle = FormBorderStyle.None;
            panelProduct.Controls.Add(frmProduct);

            frmProduct.Show();
        }
        private void btnDialog_click(object sender, EventArgs e)
        {
            if (frmProducts == null)
            {
                frmProducts = new frmProducts();
            }

            if (frmProducts.ShowDialog() == DialogResult.OK)
            {
                this.ProductUnit    = frmProducts.ProductUnit;
                this.Text           = frmProducts.ProductUnit.ProductName;
                OwnerCell.CellValue = frmProducts.ProductUnit.ProductRefId;
            }
        }
Beispiel #11
0
        private void productToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelProduct.Visible  = true;
            panelBrand.Visible    = false;
            panelCategory.Visible = false;
            panelUsers.Visible    = false;
            panelSettings.Visible = false;
            var frmProduct = new frmProducts(adminDto.Id);

            frmProduct.TopLevel        = false;
            frmProduct.AutoScroll      = true;
            frmProduct.FormBorderStyle = FormBorderStyle.None;
            panelProduct.Controls.Add(frmProduct);

            frmProduct.Show();
        }
Beispiel #12
0
        private void productsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmProducts product = new frmProducts();

            product.Show();
        }
Beispiel #13
0
        private void bunifuFlatButton3_Click(object sender, EventArgs e)
        {
            frmProducts product = new frmProducts();

            product.Show();
        }
Beispiel #14
0
 public ProductListWindowTests()
 {
     Sut = new frmProducts();
 }
Beispiel #15
0
        private void Button1_Click(object sender, EventArgs e)
        {
            var form = new frmProducts();

            form.ShowDialog();
        }
        private void exploiterLoadCombosBtn_Click(object sender, EventArgs e)
        {
            frmProducts product = new frmProducts();

            product.Show();
        }