Beispiel #1
0
 private void EditUserClick(object sender, RoutedEventArgs e)
 {
     if (userDataGrid.SelectedItem != null)
     {
         var userWindow = new UserEditWindow {Title = "Edit user", DataContext = this.DataContext};
         userWindow.Show();
     }
 }
Beispiel #2
0
 private void AddUserClick(object sender, RoutedEventArgs e)
 {
     var userWindow = new UserEditWindow {Title = "Add new user", DataContext = this.DataContext};
     userWindow.Show();
 }