Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmExpenditureDetails newForm = new frmExpenditureDetails();

            newForm.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgvExpenditure.RowCount > 0)
     {
         int rowIndex   = dgvExpenditure.CurrentCell.RowIndex;
         int primaryKey = Convert.ToInt32(dgvExpenditure.Rows[rowIndex].Cells[3].Value);
         frmExpenditureDetails newForm = new frmExpenditureDetails(primaryKey);
         newForm.Show();
         this.Hide();
     }
 }