private void btnGenerate_Click(object sender, EventArgs e) { PaymentReport pm = new PaymentReport(); if (txtIDNumber.Text != string.Empty) { if (txtIDNumber.Text != "All") { if (chkStudentID()) { pm.setVars(txtIDNumber.Text); pm.ShowDialog(); } else { MessageBox.Show("ID Number does not exist", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { pm.setVars(txtIDNumber.Text); pm.ShowDialog(); } } }
private void btnGenerate_Click(object sender, EventArgs e) { PaymentReport pm = new PaymentReport(); if (txtIDNumber.Text != string.Empty) { if (txtIDNumber.Text != "All") { if (chkStudentID()) { pm.setVars(txtIDNumber.Text); pm.ShowDialog(); } else MessageBox.Show("ID Number does not exist", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { pm.setVars(txtIDNumber.Text); pm.ShowDialog(); } } }
private void btnAttendanceList_Click(object sender, EventArgs e) { if (GlobalClass.WindowAttendanceDetails == true) { } else { PaymentReport attendanceDetails = new PaymentReport(); attendanceDetails.Show(this); attendanceDetails.Location = new Point(25, 25); GlobalClass.WindowAttendanceDetails = true; } }