private bool OnRemoveViewModel(IPropertyViewModelCollection Properties) { if (!ShowRemoveDialog) { return(true); } return(MessageBox.Show(Application.Current.MainWindow, "Do you want to delete this item(s)", "Warning", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes); }
private bool OnEditViewModel(IPropertyViewModelCollection Properties) { EditWindow editWindow; editWindow = new EditWindow() { Owner = Application.Current.MainWindow, PropertyViewModelCollection = Properties }; return(editWindow.ShowDialog() ?? false); }
private bool EditCallBack(IPropertyViewModelCollection Properties) { EditWindow editWindow; editWindow = new EditWindow() { Owner = this, PropertyViewModelCollection = Properties }; return(editWindow.ShowDialog() ?? false); }