Beispiel #1
0
 private Settings(SettingsInfo info)
 {
     this.UpdateFrequency = info.UpdateFrequency;
     this.HistoryLength = info.HistoryLength;
     this.IdleTime = info.IdleTime;
     this.TrackExes = info.TrackExes;
     this.AlwaysOnTop = info.AlwaysOnTop;
     this.Width = info.Width;
     this.Height = info.Height;
     this.Left = info.Left;
     this.Top = info.Top;
     this.Websites = new List<ProgramInfo>(info.Websites);
     this.Programs = new Dictionary<string, ProgramInfo>();
     foreach(ProgramInfo program in info.Programs)
     {
         Programs[program.Name] = program;
     }
 }
Beispiel #2
0
 private static Settings makeDefault()
 {
     SettingsInfo info = new SettingsInfo();
     return new Settings(info);
 }