Exemplo n.º 1
0
        private void butNewprice_Click(object sender, EventArgs e)
        {
            FrmPriceinput frm = new FrmPriceinput();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                _product.ProductPrices.Add(frm.GetProductPrice);
                BindPrices();
            }
        }
Exemplo n.º 2
0
        private void butEdit_Click(object sender, EventArgs e)
        {
            if (lsvPrice.SelectedItems.Count > 0)
            {
                ProductPrice  pp  = (ProductPrice)lsvPrice.SelectedItems[0].Tag;
                FrmPriceinput frm = new FrmPriceinput(pp);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //_product.ProductPrices.Add(frm.GetProductPrice);
                    BindPrices();
                }
            }
        }
Exemplo n.º 3
0
        private void butNewprice_Click(object sender, EventArgs e)
        {
            FrmPriceinput frm = new FrmPriceinput();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                _product.ProductPrices.Add(frm.GetProductPrice);
                BindPrices();
            }
        }
Exemplo n.º 4
0
        private void butEdit_Click(object sender, EventArgs e)
        {
            if (lsvPrice.SelectedItems.Count > 0)
            {
                ProductPrice pp = (ProductPrice)lsvPrice.SelectedItems[0].Tag;
                FrmPriceinput frm = new FrmPriceinput(pp);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //_product.ProductPrices.Add(frm.GetProductPrice);
                    BindPrices();
                }
            }
        }