示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            _auth a = new _auth();

            a.ShowDialog();
            if (a.upflag == "1")
            {
                if (String.IsNullOrWhiteSpace(label9.Text) || label9.Text == "~code~")
                {
                    MessageBox.Show(this, "Please select an event to update", "Peter Says", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    _hsSchoolarForm b = new _hsSchoolarForm();
                    b.label2.Text = label9.Text;
                    b.ShowDialog();
                }
            }
            else
            {
                MessageBox.Show(this, "Oops, Wrong Password :P", "Peter Says", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            getAttendee();
            label9.Text = "~code~";
        }
示例#2
0
        private void button6_Click(object sender, EventArgs e)
        {
            _hsSchoolarForm a = new _hsSchoolarForm();

            a.ShowDialog();
            getAttendee();
        }