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(); } }
private void InitData(AgendaSystem agenda) { this.agendaSystem = agenda; this.persons = agendaSystem.PersonsList; }