예제 #1
0
 public MainWindow()
 {
     InitializeComponent();
     _previewDialog  = new ViewDialog();
     _userCollection = new ObservableCollection <User>();
     _userCollection.CollectionChanged += (e, v) => DisableButtons();
     UsersListBox.ItemsSource           = _userCollection;
     DisableButtons();
 }
예제 #2
0
 private void ViewButton_OnClick(object sender, RoutedEventArgs e)
 {
     _previewDialog      = new ViewDialog();
     _previewDialog.User = _userPreview;
     _previewDialog.Show();
 }