コード例 #1
0
        public LinktoProcessViewModel(string linktoprocess)
        {
            _activities = GetActivities(linktoprocess);

            CloseCommand = new RelayCommand(CloseAction);
            CloseCommand.IsEnabled = true;
        }
コード例 #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));
                          }
                  ));
            });

        }
コード例 #3
0
        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;
        }