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 { _collegeSchoolarForm2 b = new _collegeSchoolarForm2(); 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~"; }
private void button6_Click(object sender, EventArgs e) { _collegeSchoolarForm2 a = new _collegeSchoolarForm2(); a.ShowDialog(); getAttendee(); }