Exemplo n.º 1
0
        public LinktoProcessViewModel(string linktoprocess)
        {
            _activities = GetActivities(linktoprocess);

            CloseCommand = new RelayCommand(CloseAction);
            CloseCommand.IsEnabled = true;
        }
Exemplo n.º 2
0
        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;
        }