Example #1
0
        private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            ChooseModuleWindow chooseModuleWindow = new ChooseModuleWindow(_user);

            chooseModuleWindow.Show();
            this.Close();
        }
Example #2
0
        private void userButton_Click(object sender, RoutedEventArgs e)
        {
            var buttonText = (sender as Button).Content.ToString();
            var user       = _userService.GetUserByFirstName(buttonText.Substring(0, buttonText.IndexOf(',')));

            if (user != null)
            {
                ChooseModuleWindow chooseModuleWindow = new ChooseModuleWindow(user);
                chooseModuleWindow.Show();
                this.Close();
            }
        }