Exemple #1
0
 private void editBillToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.dgBills.CurrentRow == null)
     {
         ShowError("Please select a row.", Form_Title);
     }
     else
     {
         frmEditBill childform = new frmEditBill(PageMode.Edit);
         childform.ItemID = Convert.ToInt32(this.dgBills.CurrentRow.Cells[0].Value);
         childform.ShowDialog();
         loadGrid();
     }
 }
Exemple #2
0
 private void addBillToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmEditBill childform = new frmEditBill(PageMode.Add);
     childform.ShowDialog();
     loadGrid();
 }