예제 #1
0
        // Handle SignIn and SignOut

        // sign in and sign out
        private void SignInButtonClick(object sender, RoutedEventArgs e)
        {
            Sign_In SignIWindow = new Sign_In();

            SignIWindow.Show();
            this.Close();
        }
예제 #2
0
        private void BackWindow(object sender, RoutedEventArgs e)
        {
            Sign_In w = new Sign_In();

            w.Show();
            this.Close();
        }
예제 #3
0
 public void Start()
 {
     if (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "userDetails.txt")))
     {
         Sign_In SignIWindow = new Sign_In() // make the sign in window invisible
         {
             Width         = 0,
             Height        = 0,
             WindowStyle   = WindowStyle.None,
             ShowInTaskbar = false,
             ShowActivated = false
         };
         SignIWindow.Closed += SignInSucced;
         SignIWindow.Show();
     }
     else
     {
         MainWindow w = new MainWindow();
         w.Show();
         this.Close();
     }
 }