Exemple #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmPurchase frm = new frmPurchase();

            frm.ShowDialog();
            this.loadStock();
        }
Exemple #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmPurchase frmPur = new frmPurchase();

            frmPur.ShowDialog();
            this.LoadData();
        }
Exemple #3
0
        private void dgvList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int         purchaseId = Convert.ToInt32(dgvList.CurrentRow.Cells[1].Value);
            frmPurchase frmPur     = new frmPurchase();

            frmPur.purchaseId = purchaseId;
            frmPur.viewFlag   = true;
            frmPur.ShowDialog();
        }
Exemple #4
0
        private void btnView_Click(object sender, EventArgs e)
        {
            int rowIndex = dgvList.CurrentRow.Index;

            if (rowIndex >= 0)
            {
                int         purchaseId = Convert.ToInt32(dgvList.CurrentRow.Cells[1].Value);
                frmPurchase frmPur     = new frmPurchase();
                frmPur.purchaseId = purchaseId;
                frmPur.viewFlag   = true;
                frmPur.ShowDialog();
            }
        }