public static UserConfig GetDefault() { UserConfig config = new UserConfig(); config.MSToDoDetail = MSToDoDetail.GetDefault(); config.TomatoClockThemes = TomatoClockTheme.GetDefaultThemeList(); config.Clocks = Clock.GetDefaultClockList(); config.AlarmFile = string.Empty; return(config); }
public static MSToDoDetail GetDefault() { MSToDoDetail detail = new MSToDoDetail(); List <string> dbPaths = Utils.SearchFileInPath(HardCode.MicrosoftToDoPath, HardCode.MicrosoftToDoDBName); if (0 < dbPaths.Count) { detail.DBPath = dbPaths[0]; } return(detail); }