public addEnrollmentSched() { InitializeComponent(); int currentYear = yearController.getSchoolYearId(); dateTimePicker1.MinDate = new DateTime(DateTime.Now.Year, 1, 1); }
private void Classroom_Load(object sender, EventArgs e) { label5.Hide(); label7.Hide(); timer1.Start(); label5.Text = yr.getSyActivated(); syid = yr.getSchoolYearId(); refreshGrid(); }
private void comboBox3_SelectedIndexChanged(object sender, EventArgs e) { if (comboBox3.SelectedIndex == 1) { comboBox1.Visible = true; txtUsername.Visible = false; button12.Visible = false; selectedYrid = 0; } else { comboBox1.Visible = false; txtUsername.Visible = true; button12.Visible = true; selectedYrid = yr.getSchoolYearId(); } }
private void button3_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count > 0) { DialogResult form1 = MessageBox.Show("Do you really want to Remove?", "Exit", MessageBoxButtons.YesNo); if (form1 == DialogResult.Yes) { sectionController.removeSection(int.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), yr.getSchoolYearId()); MessageBox.Show("Succesfully Remove a section"); auditTrail.addAudit(label7.Text, "Remove Section"); refreshGrid(); } } }
public studentreserve() { InitializeComponent(); syid = YearController.getSchoolYearId(); }
private void refreshGrid() { gradeLevelController.fillDataGridGrade(ref dataGridView1, YearController.getSchoolYearId()); }
private void button1_Click(object sender, EventArgs e) { bool isValid = checkValidation(); if (isValid) { if (!isEdited) { sect.addSection(comboBox1.SelectedItem.ToString(), teacherId, textBox1.Text.Trim(), int.Parse(textBox2.Text.ToString().Trim())); auditTrail.addAudit(label5.Text, "Added Section " + textBox1.Text.Trim() + " For " + comboBox1.SelectedItem.ToString()); this.Hide(); } else { sect.updateSection(sect_id, comboBox1.SelectedItem.ToString(), teacherId, textBox1.Text.Trim(), yr.getSchoolYearId(), int.Parse(textBox2.Text.Trim())); auditTrail.addAudit(label5.Text, "Updated Section For " + comboBox1.SelectedItem.ToString()); this.Hide(); } } }
private void SchoolRequirements_Load(object sender, EventArgs e) { schoolYrId = yearController.getSchoolYearId(); refreshGrid(); }
public ModeOfPaymentDiscount() { InitializeComponent(); syid = YearController.getSchoolYearId(); }
public PanelViewTeacherSched() { InitializeComponent(); syid = yrController.getSchoolYearId(); teachersIds = specializationController.fillDataTeacherCombo(ref comboBox1); }
private void refreshGrid() { timestampController.fillDataTime(ref dataGridView1, yearController.getSchoolYearId()); }