Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            FrmdetailBuyerMaster buyerMaster = new FrmdetailBuyerMaster(BuyerMasterID);

            buyerMaster.Show();
            this.Close();
        }
Пример #2
0
        private void btnADD_Click(object sender, EventArgs e)
        {
            FrmdetailBuyerMaster frmdetailBuyer = new FrmdetailBuyerMaster();

            frmdetailBuyer.MdiParent = this.MdiParent;
            frmdetailBuyer.Show();
            this.Close();
        }
        public void LoadBuyerContact()
        {
            // frmSellerContact frmSeller = new frmSellerContact();
            //frmSeller.MdiParent = this.MdiParent;
            //frmSeller.Show();
            FrmdetailBuyerMaster detailSeller = new FrmdetailBuyerMaster(BuyerMasterID);

            detailSeller.MdiParent = this.MdiParent;
            detailSeller.Show();
        }
Пример #4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (dgvBuyerMaster.SelectedRows.Count > 0)
     {
         var id = (int)dgvBuyerMaster.SelectedRows[0].Cells["ID"].Value;
         FrmdetailBuyerMaster detailBuyer = new FrmdetailBuyerMaster(id);
         detailBuyer.MdiParent = this.MdiParent;
         detailBuyer.SetBuyerMaster(id);
         detailBuyer.Show();
     }
 }