} // AdvancedSettings public static RecordTask CreateWithDefaultValues(RecordChannel channel) { RecordTask task; task = new RecordTask() { Channel = channel ?? new RecordChannel(), Schedule = RecordSchedule.CreateWithDefaultValues(RecordScheduleKind.OneTime), Duration = RecordDuration.CreateWithDefaultValues(), Description = RecordDescription.CreateWithDefaultValues(), Action = RecordAction.CreateWithDefaultValues(), AdvancedSettings = RecordAdvancedSettings.CreateWithDefaultValues(), }; return(task); } // CreateWithDefaultValues
public static string CreateTaskName(RecordChannel channel, DateTime startDateTime) { return(string.Format(Properties.Texts.RecordTaskNameSuggestedNameFormat, channel.Name, startDateTime, startDateTime)); } // CreateTaskName