public void CreateData() { Character = new CharacterData(ref Settings); Corporation = new CorporationData(ref Settings); Alliance = new AllianceData(ref Settings); //Market = new MarketData(ref Settings); //Public = new PublicData(ref Settings); //Universe = new UniverseData(ref Settings); }
protected override bool ReadInData() { using (StreamReader myReader = new StreamReader(SaveFile)) { CorporationData temp = Settings.MainSettings.serializer.Deserialize <CorporationData>(new JsonTextReader(myReader)); Console.Write($"Loading data from {Path.GetFileName(SaveFile)}"); Information = temp.Information; AllianceHistory = temp.AllianceHistory; Blueprints = temp.Blueprints; ContainerLogs = temp.ContainerLogs; Divisions = temp.Divisions; Facilities = temp.Facilities; Icons = temp.Icons; Medals = temp.Medals; IssuedMedals = temp.IssuedMedals; Members = temp.Members; MemberLimit = temp.MemberLimit; MemberTitles = temp.MemberTitles; MemberTracking = temp.MemberTracking; Roles = temp.Roles; RolesHistory = temp.RolesHistory; Shareholders = temp.Shareholders; Standings = temp.Standings; Starbases = temp.Starbases; Structures = temp.Structures; Titles = temp.Titles; CorporationID = temp.CorporationID; Bookmarks = temp.Bookmarks; BookmarkFolders = temp.BookmarkFolders; Contacts = temp.Contacts; Labels = temp.Labels; Contracts = temp.Contracts; Standings = temp.Standings; FactionWarfareStats = temp.FactionWarfareStats; Observers = temp.Observers; IndustryJobs = temp.IndustryJobs; Extractions = temp.Extractions; Killmails = temp.Killmails; CustomsOffices = temp.CustomsOffices; Console.Write(" - successful"); Console.WriteLine(); Console.WriteLine(); return(true); } }