Esempio n. 1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     NewUser newUserPopup = new NewUser();
     newUserPopup.Show();
     newUserPopup.Closed += new EventHandler(newUserPopup_Closed);
     //CreateNewUser newUserPopup = new CreateNewUser();
     //newUserPopup.Show();
     //newUserPopup.Closed += new EventHandler(newUserPopup_Closed);
 }
Esempio n. 2
0
        private void buttonEditUser_Click(object sender, RoutedEventArgs e)
        {
            NewUser newUserPopup = new NewUser();
            newUserPopup.EditMode = true;
            var selectedUser = gridUsers.SelectedItem as Web.Models.User;

            newUserPopup.CurrentUser = selectedUser;
            newUserPopup.Show();
            newUserPopup.Closed += new EventHandler(newUserPopup_Closed);
        }