Пример #1
0
        protected override void tambahBtn_Click(object sender, EventArgs e)
        {
            var frm = new FrmProduct();

            frm.Listener = this;
            frm.ShowDialog();
        }
Пример #2
0
        protected override void EditBtn_Click(object sender, EventArgs e)
        {
            Product currentProduct = (Product)productBindingSource.Current;

            if (currentProduct == null)
            {
                return;
            }

            var frm = new FrmProduct(currentProduct);

            frm.Listener = this;
            frm.ShowDialog();
        }