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); }
private void btnNewStudent_Click(object sender, EventArgs e) { NewRegister op = new NewRegister(); op.ShowDialog(); }
private void exitToolStripMenuItem_Click(object sender, EventArgs e) { NewRegister op = new NewRegister(); op.ShowDialog(); }
private void exitToolStripMenuItem_Click(object sender, EventArgs e) { NewRegister op = new NewRegister(); op.ShowDialog(); }
private void btnNewStudent_Click(object sender, EventArgs e) { NewRegister op = new NewRegister(); op.ShowDialog(); }