コード例 #1
0
 public SettingsGroupViewModel(Type componentType, IEnumerable <Type> taskSettings, string groupName)
 {
     Misc.FPReset();
     _groupName                  = groupName;
     _settingsTypes              = taskSettings;
     _taskInstance               = Activator.CreateInstance(componentType) as TaskBase;
     _serviceSettings            = GroupSettings.GetGroupSettings(_taskInstance, GroupName);
     RunTaskCommand              = new RelayCommand(arg => RunTask());
     RunTaskCurrentThreadCommand = new RelayCommand(arg => RunTaskCurrentThread());
     SaveCommand                 = new RelayCommand(arg => _serviceSettings.SaveSettings());
 }