Example #1
0
 private void btnViewTaller_Click(object sender, EventArgs e)
 {
     try
     {
         var viewTaller = new ViewTallerForm(StudNames, FeeName, PAmount, Pdate);
         viewTaller.ShowDialog();
     }catch (Exception)
     {
         MessageBox.Show("something went wrong, try again", "Cash Desk", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Example #2
0
 private void dataGridTallerView_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         var ID = Convert.ToInt32(dataGridTallerView.SelectedRows[0].Cells[0].Value.ToString());
         DisplayTaller.tallerID = ID.ToString();
         names   = dataGridTallerView.SelectedRows[0].Cells[1].Value.ToString();
         feeName = dataGridTallerView.SelectedRows[0].Cells[3].Value.ToString();
         amount  = dataGridTallerView.SelectedRows[0].Cells[4].Value.ToString();
         Ddate   = dataGridTallerView.SelectedRows[0].Cells[7].Value.ToString();
         var viewTaller = new ViewTallerForm(names, feeName, amount, Ddate);
         viewTaller.ShowDialog();
     }catch (Exception) { }
 }
Example #3
0
        private void btnViewTaller_Click(object sender, EventArgs e)
        {
            var viewTaller = new ViewTallerForm(names, feeName, amount, Ddate);

            viewTaller.ShowDialog();
        }
Example #4
0
        private void btnViewTaller_Click(object sender, EventArgs e)
        {
            var viewTaller = new ViewTallerForm(StudNames, FeeName, PAmount, dDate);

            viewTaller.ShowDialog();
        }