Ejemplo 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);
 }
Ejemplo 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);
        }