Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
        private void user_button_Click(object sender, EventArgs e)
        {
            this.Hide();
            AccountPage a = new AccountPage(email);

            a.ShowDialog();
            Close();
        }
Beispiel #4
0
        private void CancelButtonProfilePhoto_Click(object sender, EventArgs e)
        {
            this.Hide();
            AccountPage d = new AccountPage(email);

            d.ShowDialog();
            this.Close();
        }
Beispiel #5
0
        private void user_button_Click(object sender, EventArgs e)
        {
            PanelLocation = 200;
            this.Hide();
            AccountPage a = new AccountPage(email);

            a.ShowDialog();
            this.Close();
        }
Beispiel #6
0
        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();
        }
Beispiel #7
0
 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();
     }
 }
Beispiel #8
0
 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();
     }
 }
Beispiel #9
0
 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();
     }
 }