Exemple #1
0
        private void BtnReturn_Click(object sender, RoutedEventArgs e)
        {
            var window = new MainUserWindow();

            window.Show();
            this.Close();
        }
Exemple #2
0
        private void BtnEnterSemester_Click(object sender, RoutedEventArgs e)
        {
            if (LbListSemester.SelectedItem != null)
            {
                var newWindow = new MainUserWindow();
                newWindow.Owner = this;
                newWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;

                newWindow.Show();
                this.Hide();
            }
        }