public LinktoProcessViewModel(string linktoprocess) { _activities = GetActivities(linktoprocess); CloseCommand = new RelayCommand(CloseAction); CloseCommand.IsEnabled = true; }
public TaskHistoryDialogViewModel() { TaskVersions = new ObservableCollection<bCheckV2.Helpers.Definitions.TaskItem>(); CloseCommand = new RelayCommand(CloseAction); CloseCommand.IsEnabled = true; dataservice = new OpsChecklistDataAgentService(); dataservice.GetTaskHistory(FormatTaskItem(ViewModel.Current.SelectedTask, View.vwAssignedTasks), result => { Deployment.Current.Dispatcher.BeginInvoke(new Action(() => { result.ToList().ForEach(task => TaskVersions.Add(task)); } )); }); }
public LateIncompleteReasonDialogViewModel() { CloseCommand = new RelayCommand(CloseAction); CloseCommand.IsEnabled = true; SaveCommand = new RelayCommand(SaveAction); SaveCommand.IsEnabled = true; _reasonService = new LateIncompleteReasonService(); _reasonSystemOutageList = new List<SystemOutrageLookUp>(); ReasonDropDownList = new ObservableCollection<string>(); LoadReasonlist(); LoadReasonSystemlist(); IsSystemFieldEnabled = false; }