private void StudentButton_Click(object sender, EventArgs e) { string A = ""; this.Hide(); CategoryForm options = new CategoryForm(); using (StudentLoginForm StudentLogin = new StudentLoginForm()) { StudentLogin.ShowDialog(); if (StudentLogin.showcat()) { stud.Email = StudentLogin.GetEmail(); stud.Name = StudentLogin.GetName(); options.ShowDialog(); if (options.done()) { options.Close(); stud.setTopics(options.GetTopics()); NumOfQ = options.QNum(); } foreach (var s in options.GetTopics()) { A += s.ToString(); } MessageBox.Show(stud.Name + stud.Email + A + NumOfQ.ToString()); } } }
/** * */ private void StudentButton_Click(object sender, EventArgs e) { this.Hide(); StudentLoginForm StudentLogin = new StudentLoginForm(); StudentLogin.Show(); }
private void StudentButton_Click(object sender, EventArgs e) { StudentLoginForm StudentLogin = new StudentLoginForm(); StudentLogin.Show(); if (StudentLogin.catdone) { MessageBox.Show("YOU DID IT BRO0"); } }