public TaskViewModel(Task model, TaskType taskType, IDiagram widget, IMessagingService messagingService) { _taskType = taskType; _widget = widget; _messagingService = messagingService; Model = model; ToggleCompletedCommand = new CaptionCommand<string>("¨", OnToggleCompleted); }
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); }