Example #1
0
 public TaskViewModel(Task model, TaskType taskType, TaskEditorViewModel widget, IMessagingService messagingService)
 {
     _taskType = taskType;
     _widget = widget;
     _messagingService = messagingService;
     Model = model;
     ToggleCompletedCommand = new CaptionCommand<string>("¨", OnToggleCompleted);
     ExecuteCommand = new DelegateCommand<string>(OnCommandExecute);
 }
Example #2
0
 public TaskViewModel(Task model, TaskType taskType, TaskEditorViewModel widget, IMessagingService messagingService)
 {
     _taskType              = taskType;
     _widget                = widget;
     _messagingService      = messagingService;
     Model                  = model;
     ToggleCompletedCommand = new CaptionCommand <string>("¨", OnToggleCompleted);
     ExecuteCommand         = new DelegateCommand <string>(OnCommandExecute);
 }