// 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(); }
private void BackWindow(object sender, RoutedEventArgs e) { Sign_In w = new Sign_In(); w.Show(); this.Close(); }
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(); } }