Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmDetailBuyerContact buyerContact = new FrmDetailBuyerContact((int)table.Rows[0]["ID"]);

            buyerContact.Show();
            this.Close();
        }
Exemple #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmDetailBuyerContact frmDetailBuyer = new FrmDetailBuyerContact((int)table.Rows[0]["ID"]);

            //DetailSellerMaster detailSeller = new DetailSellerMaster();
            if (dgvBuyerContact.SelectedRows.Count > 0)
            {
                var id = (int)dgvBuyerContact.SelectedRows[0].Cells["BuyerMasterID"].Value;
                frmDetailBuyer.SetBuyerContact(id);
                frmDetailBuyer.Show();
            }
        }