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

            sellerContact.Show();
            this.Close();
        }
Exemple #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            frmDetailSellerContact frmDetailSeller = new frmDetailSellerContact((int)table.Rows[0]["ID"]);

            //DetailSellerMaster detailSeller = new DetailSellerMaster();
            if (dgvSellerContact.SelectedRows.Count > 0)
            {
                var id = (int)dgvSellerContact.SelectedRows[0].Cells["SellerID"].Value;
                frmDetailSeller.SetSellerContact(id);
                frmDetailSeller.Show();
            }
        }