コード例 #1
0
        private void btnThemHoaDon_Click(object sender, EventArgs e)
        {
            var form = new BillingAdd(-1);

            form.ShowDialog(this);
            if (form.IsChange)
            {
                FillBill2Grid();
            }
        }
コード例 #2
0
 private void dgvHoaDon_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvHoaDon.Columns[e.ColumnIndex].Name == "Edit")
     {
         var billId = GetSelectedBillId();
         var form   = new BillingAdd(billId);
         form.ShowDialog(this);
         if (form.IsChange)
         {
             FillBill2Grid();
         }
     }
 }