private void OnCreate(object sender, RoutedEventArgs e) { var window = new TestModelWindow(_service); window.ShowDialog(); if (window.DialogResult == true) { _asyncRemoteCollectionView.Refresh(); } }
private void OnEdit(object sender, MouseButtonEventArgs e) { if (!((e.OriginalSource as FrameworkElement).DataContext is TestModel testModel)) { return; } var window = new TestModelWindow(_service, testModel); window.ShowDialog(); if (window.DialogResult == true) { _asyncRemoteCollectionView.Refresh(); } }