private void BackButton_Click(object sender, RoutedEventArgs e) { if (MainFrame.CanGoBack) { MainFrame.GoBack(); } else { StartWindow startWindow = new StartWindow(); startWindow.Show(); Window.GetWindow(this).Close(); } }
private void LoginExitButton_Click(object sendder, RoutedEventArgs e) { if (LoginExitButton.Content.ToString() == "Вход") { MainFrame.Navigate(new LoginPage()); } else if (LoginExitButton.Content.ToString() == "Выход") { StartWindow startWindow = new StartWindow(); startWindow.Show(); this.Close(); } }