Example #1
0
 private void Open(string file)
 {
     try {
         if (file.Length > 0)
         {
             this.InitData(AgendaSystem.Load(file));
         }
     } catch (Exception)
     {
         Util.MsgError(this, AppInfo.Name, "Unexpected error loading:\n'" + file + '\'');
         this.New();
     }
     finally {
         this.UpdateInfo();
     }
 }
Example #2
0
 private void InitData(AgendaSystem agenda)
 {
     this.agendaSystem = agenda;
     this.persons      = agendaSystem.PersonsList;
 }