public ExampleDocumentMessagesViewModel(ViewModelContext viewModelContext)
     : base(viewModelContext)
 {            
     ShowMessageCommand = new ViewModelCommand(ShowMessage);
     ClearMessagesCommand = new ViewModelCommand(ClearMessages);
     ShowMessageBoxCommand = new ViewModelCommand(OpenMessageBox);
     ThrowExceptionCommand = new ViewModelCommand(ThrowException);
 }
        public ExampleDocumentNavigationViewModel(ViewModelContext viewModelContext)
            : base(viewModelContext)
        {            
            OpenDocumentCommand = new ViewModelCommand(OpenDocument);
            GetDocumentsCommand = new ViewModelCommand(GetDocuments);
            OpenWindowCommand = new ViewModelCommand(OpenWindow);

            OpenDocuments = new ObservableCollection<ViewModelBase>();
        }
Exemplo n.º 3
0
        public CustomerRemediationViewModel(ViewModelContext viewModelContext, RemediationService remediationService)
            : base(viewModelContext)
        {
            this.remediationService = remediationService;
            CompleteCommand = new ViewModelCommand(Complete);
            FailCommand = new ViewModelCommand(Fail);

            Products = new List<string>() {"Cap", "Collar", "Structured Collar"};
        }
        public ConfigurationAuthorisationViewModel(ViewModelContext viewModelContext, AuthorisationManagerServiceManager authorisationManagerServiceManager)
            : base(viewModelContext)
        {
            this.authorisationManagerServiceManager = authorisationManagerServiceManager;

            NewUserCommand = new WpfCommand(OnNewUser);
            NewRoleCommand = new WpfCommand(OnNewRole);
            NewActivityCommand = new WpfCommand(OnNewActivity);
            SaveCommand = new WpfCommand(OnEntitySave);
            DeleteCommand = new WpfCommand(OnEntityDelete);
            RemoveItemCommand = new WpfCommand(OnRemoveItem);
            SelectItemCommand = new WpfCommand(OnSelectItem);
            DragDropCommand = new WpfCommand(OnDragDrop);

            Logger.Log("ConfigurationAuthorisationViewModel initialised", Category.Info, Priority.None);
        }
Exemplo n.º 5
0
 public ExampleDocumentViewModel(ViewModelContext viewModelContext)
     : base(viewModelContext)
 {            
     ResetStatusCommand = new ViewModelCommand(ResetDocumentStatus);            
 }
Exemplo n.º 6
0
 public NewDocumentViewModel(ViewModelContext viewModelContext)
     : base(viewModelContext)
 {
 }
 public ConfigurationAuthorisationViewModel(ViewModelContext viewModelContext)
     : base(viewModelContext)
 {
 }