public static TaskSettings GetSafeTaskSettings(TaskSettings taskSettings) { TaskSettings safeTaskSettings; if (taskSettings.IsUsingDefaultSettings && Program.DefaultTaskSettings != null) { safeTaskSettings = Program.DefaultTaskSettings.Copy(); safeTaskSettings.Description = taskSettings.Description; safeTaskSettings.Job = taskSettings.Job; } else { safeTaskSettings = taskSettings.Copy(); safeTaskSettings.SetDefaultSettings(); } safeTaskSettings.TaskSettingsReference = taskSettings; return(safeTaskSettings); }
public static TaskSettings GetSafeTaskSettings(TaskSettings taskSettings) { TaskSettings taskSettingsCopy; if (taskSettings.IsUsingDefaultSettings && Program.DefaultTaskSettings != null) { taskSettingsCopy = Program.DefaultTaskSettings.Copy(); taskSettingsCopy.Description = taskSettings.Description; taskSettingsCopy.Job = taskSettings.Job; } else { taskSettingsCopy = taskSettings.Copy(); taskSettingsCopy.SetDefaultSettings(); } taskSettingsCopy.TaskSettingsReference = taskSettings; return(taskSettingsCopy); }
public static TaskSettings GetSafeTaskSettings(TaskSettings taskSettings) { TaskSettings safeTaskSettings; if (taskSettings.IsUsingDefaultSettings && Program.DefaultTaskSettings != null) { safeTaskSettings = Program.DefaultTaskSettings.Copy(); safeTaskSettings.Description = taskSettings.Description; safeTaskSettings.Job = taskSettings.Job; } else { safeTaskSettings = taskSettings.Copy(); safeTaskSettings.SetDefaultSettings(); } safeTaskSettings.TaskSettingsReference = taskSettings; return safeTaskSettings; }
public static TaskSettings GetSafeTaskSettings(TaskSettings taskSettings) { TaskSettings taskSettingsCopy; if (taskSettings.IsUsingDefaultSettings && Program.DefaultTaskSettings != null) { taskSettingsCopy = Program.DefaultTaskSettings.Copy(); taskSettingsCopy.Description = taskSettings.Description; taskSettingsCopy.Job = taskSettings.Job; } else { taskSettingsCopy = taskSettings.Copy(); taskSettingsCopy.SetDefaultSettings(); } taskSettingsCopy.TaskSettingsReference = taskSettings; return taskSettingsCopy; }