示例#1
0
 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);
 }
示例#2
0
        private bool OnEditViewModel(IPropertyViewModelCollection Properties)
        {
            EditWindow editWindow;

            editWindow = new EditWindow()
            {
                Owner = Application.Current.MainWindow, PropertyViewModelCollection = Properties
            };
            return(editWindow.ShowDialog() ?? false);
        }
示例#3
0
        private bool EditCallBack(IPropertyViewModelCollection Properties)
        {
            EditWindow editWindow;

            editWindow = new EditWindow()
            {
                Owner = this, PropertyViewModelCollection = Properties
            };
            return(editWindow.ShowDialog() ?? false);
        }