Example #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            string State = "";


            if (cbTrue.Checked == true)
            {
                State = "True";
            }
            else
            {
                State = "False";
            }


            this.Hide();


            //save last Student ID
            Student_Management_System.Properties.Settings.Default.ID = int.Parse(txtAVG.Text);
            Student_Management_System.Properties.Settings.Default.Save();

            //insert data into database
            NewRegister op = new NewRegister(lblID.Text, txtName.Text, dateTimePicker1.Value.ToShortDateString(), int.Parse(txtAVG.Text), State);
        }
Example #2
0
        private void btnNewStudent_Click(object sender, EventArgs e)
        {
            NewRegister op = new NewRegister();

            op.ShowDialog();
        }
Example #3
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     NewRegister op = new NewRegister();
     op.ShowDialog();
 }
Example #4
0
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewRegister op = new NewRegister();

            op.ShowDialog();
        }
Example #5
0
 private void btnNewStudent_Click(object sender, EventArgs e)
 {
     NewRegister op = new NewRegister();
     op.ShowDialog();
 }