Exemplo n.º 1
0
        private void OnCreate(object sender, RoutedEventArgs e)
        {
            var window = new TestModelWindow(_service);

            window.ShowDialog();
            if (window.DialogResult == true)
            {
                _asyncRemoteCollectionView.Refresh();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }