Example #1
0
        private void bttnAdd_Click(object sender, EventArgs e)
        {
            frmSemester_AE frm = new frmSemester_AE();

            frm.ADD_STATE = true;
            frm.ShowDialog();
            loadvars("");
        }
Example #2
0
 private void bttnEdit_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count < 1)
     {
         MessageBox.Show("Pls. Select an Item.", "Select Item", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         frmSemester_AE f = new frmSemester_AE();
         f.ADD_STATE  = false;
         f.semesterId = int.Parse(listView1.SelectedItems[0].Text);
         f.ShowDialog();
         loadvars("");
     }
 }