Exemple #1
0
 private void profileComBox_SelectedIndexChanged_1(object sender, EventArgs e)
 {
     profileComBox.Visible = false;
     if (profileComBox.SelectedItem.ToString() == "User Data")
     {
         if (userProfile == null)
         {
             userProfile             = new UserProfile();
             userProfile.FormClosed += delegate { tips = null; };
         }
         userProfile.Show();
         this.Hide();
         //register.Show();
         //this.Hide();
     }
     else if (profileComBox.SelectedItem.ToString() == "Logout")
     {
         if (startScreen == null)
         {
             startScreen             = new StartScreen();
             startScreen.FormClosed += delegate { tips = null; };
         }
         startScreen.currentUser = currentUser;
         startScreen.Show();
         this.Hide();
         // startScreen.Show();
         //this.Hide();
     }
 }
Exemple #2
0
        private void backBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            StartScreen sc = new StartScreen();

            sc.ShowDialog();
        }
Exemple #3
0
        private void backBtn_Click(object sender, EventArgs e)
        {
            if (startScreen == null)
            {
                startScreen             = new StartScreen();
                startScreen.FormClosed += delegate { startScreen = null; };
            }

            startScreen.currentUser = currentUser;
            startScreen.Show();
            this.Hide();
        }