private void Return_Click(object sender, EventArgs e) { switch (returnform) { case 0: this.Hide(); HomePage a = new HomePage(email); a.ShowDialog(); this.Close(); break; case 1: this.Hide(); AccountPage b = new AccountPage(email); b.ShowDialog(); this.Close(); break; case 3: this.Hide(); FriendRequest c = new FriendRequest(email, 3); c.ShowDialog(); this.Close(); break; default: this.Hide(); HomePage d = new HomePage(email); d.ShowDialog(); this.Close(); break; } }
private void cancelButton_Click(object sender, EventArgs e) { switch (recievedform) { case 0: //HomePage this.Hide(); HomePage a = new HomePage(email); a.ShowDialog(); this.Close(); break; case 1: //AccountPage this.Hide(); AccountPage b = new AccountPage(email); b.ShowDialog(); this.Close(); break; case 3: //SettingsPage this.Hide(); SettingsPage c = new SettingsPage(3, email); c.ShowDialog(); this.Close(); break; default: this.Hide(); HomePage d = new HomePage(email); d.ShowDialog(); this.Close(); break; } }
private void user_button_Click(object sender, EventArgs e) { this.Hide(); AccountPage a = new AccountPage(email); a.ShowDialog(); Close(); }
private void CancelButtonProfilePhoto_Click(object sender, EventArgs e) { this.Hide(); AccountPage d = new AccountPage(email); d.ShowDialog(); this.Close(); }
private void user_button_Click(object sender, EventArgs e) { PanelLocation = 200; this.Hide(); AccountPage a = new AccountPage(email); a.ShowDialog(); this.Close(); }
private void BackgroundImage4_Click(object sender, EventArgs e) { MySQLFunctions.SQLCommand($"UPDATE accounts set backgroundImage_path='Background4.jpg' where Email='{email}';"); this.Hide(); AccountPage d = new AccountPage(email); d.ShowDialog(); this.Close(); }
public void crashPage(int num) { if (num == 1) { this.Hide(); HomePage a = new HomePage(email); a.ShowDialog(); this.Close(); } else { this.Hide(); AccountPage a = new AccountPage(email); a.ShowDialog(); this.Close(); } }
private void CancelButton_Click(object sender, EventArgs e) { if (isPersonalPage == false) { this.Hide(); HomePage d = new HomePage(email); d.ShowDialog(); this.Close(); } else { this.Hide(); AccountPage d = new AccountPage(email); d.ShowDialog(); this.Close(); } }
private void profileImageFour_Click(object sender, EventArgs e) { if (isPersonalPage == false) { MySQLFunctions.SQLCommand($"UPDATE accounts set profImage_path='FemaleAvatar2.png' where Email='{email}';"); this.Hide(); HomePage d = new HomePage(email); d.ShowDialog(); this.Close(); } else { MySQLFunctions.SQLCommand($"UPDATE accounts set profImage_path='FemaleAvatar2.png' where Email='{email}';"); this.Hide(); AccountPage d = new AccountPage(email); d.ShowDialog(); this.Close(); } }