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

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

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

            a.ShowDialog();
            this.Close();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }