예제 #1
0
        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();
                }
            }
        }
예제 #2
0
        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();
                }

            }
        }
예제 #3
0
파일: FrmMain.cs 프로젝트: dansalan/DCFIv5
        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;
            }
        }