private void button2_Click(object sender, EventArgs e) { this.Hide(); EventAdminView openinstance = new EventAdminView(); openinstance.ShowDialog(); Environment.Exit(0); }
private void btnGoBack_Click(object sender, EventArgs e) { this.Hide(); EventAdminView openinstance = new EventAdminView(); // allows the end user to go back. openinstance.ShowDialog(); Environment.Exit(0); }
private void button1_Click(object sender, EventArgs e) { comboBox1.SelectedItem.Equals(EI.EventID); comboBox1.SelectedItem.Equals(EI.Title); EI.DeleteEventData(); this.Hide(); EventAdminView openInstance = new EventAdminView(); openInstance.ShowDialog(); Environment.Exit(0); }
private void button1_Click(object sender, EventArgs e) { EI.Title = textBox3.Text; EI.Location = textBox2.Text; EI.Description = textBox1.Text; EI.Capacity = Convert.ToInt32(this.txtCapacity.Text); EI.AddEventData(); this.Hide(); EventAdminView openinstance = new EventAdminView(); openinstance.ShowDialog(); Environment.Exit(0); }
private void btnRegister_Click(object sender, EventArgs e) { bool tryAgain = true; string password = "******"; // sets the password for the login. if (txtpw.Text == password) // verifies the password. { this.Hide(); EventAdminView openInstance = new EventAdminView(); openInstance.ShowDialog(); Environment.Exit(0); } else { MessageBox.Show("Wrong, Please Try Again"); // allows the user to try again. txtpw.Text = ""; } }