Example #1
0
        private void dgvInventory_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int i = e.RowIndex;

            if (e.RowIndex > -1)
            {
                DataGridViewRow row = dgvInventory.Rows[i];
                inventory_id   = row.Cells[0].Value.ToString();
                inventory_name = row.Cells[1].Value.ToString();
                amount         = row.Cells[2].Value.ToString();
                consumable     = row.Cells[3].Value.ToString();
                this.Hide();
                frmCashier frm = new frmCashier();
                frm.btnFetch.PerformClick();
            }
        }
Example #2
0
 private void btnPayment_Click(object sender, EventArgs e)
 {
     if (schedule_id != "")
     {
         if (attended == "True")
         {
             frmCashier frm = new frmCashier();
             frm.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("This schedule is not attended");
         }
     }
     else
     {
         MessageBox.Show("Please select schedule");
     }
 }