예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }