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); }
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); }