public Task SetUpdateChoice(UpdateChoice choice) { return EPM.SetConfigurationValue("preferences", "updatechoice", choice.ToString()); }
public Task SetTask(int hour, UpdateDayOfWeek day, bool autoTrim, UpdateChoice choice) { return Task.Factory.StartNew(() => { CoApp.SetScheduledTask("coapp_update", @"c:\programdata\bin\CoApp.Updater.exe", "--quiet", 3, 0, null, 60); CoApp.SetTrimOnUpdate(autoTrim); CoApp.SetUpdateChoice(choice); } ); }