public void CreatePublicAccess(ref ProfileSettings settings) { Market = new MarketData(ref settings); Public = new PublicData(ref settings); Universe = new UniverseData(ref settings); UI = new UserInterfaceData(ref settings); }
internal AllianceData(ref ProfileSettings settings) : base(ref settings) { AllianceID = Settings.AuthorisationData.AllianceID; if (AllianceID > 0) { GetData(); } }
private CorporationData(ref ProfileSettings settings, bool isATempItem) : base(ref settings) { CorporationID = Settings.AuthorisationData.CorporationID; if (!isATempItem) { GetData(); } }
/// <summary> /// Loads an existing profile from the folder supplied /// </summary> /// <param name="profileName"></param> public Profile(ref MainSettings mainSettings, string profileName) { Settings = new ProfileSettings(ref mainSettings, profileName); Authenticate(); if (!Settings.MainSettings.NoDownloading) { CreateData(); } }
public void CreateData(ref ProfileSettings settings) { Dogma = new DogmaData(ref settings); Industry = new IndustryData(ref settings); Incursions = new IncursionsData(ref settings); FactionWarfare = new FactionWarfareData(ref settings); Market = new MarketData(ref settings); Sovereignty = new SovereigntyData(ref settings); Opportunities = new OpportunitiesData(ref settings); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (Settings != null) { Settings.Dispose(); Settings = null; } } }
public Profile(ref MainSettings mainSettings, ConfigClass config) { Settings = new ProfileSettings(ref mainSettings) { Config = config }; Authenticate(); if (!Settings.MainSettings.NoDownloading) { CreateData(); } }
protected virtual void Dispose(bool disposing) { if (disposing) { // dispose managed resources if (Settings != null) { Settings.Dispose(); Settings = null; } // Dispose remaining objects, } }
protected virtual void Dispose(bool disposing) { if (disposing) { // dispose managed resources if (Settings != null) { Settings.Dispose(); Settings = null; } // Dispose remaining objects, if (Authenticator != null) { Authenticator.Dispose(); Authenticator = null; } if (Character != null) { Character.Dispose(); Character = null; } } }
public ProfileSettings(ref MainSettings mainSettings) { MainSettings = mainSettings; mainSettings.CheckInternetAccess(); CheckForScopesFile(); if (File.Exists(MainSettings.DataDirectory + ProfileName + $"\\{ProfileName}.json")) { Console.WriteLine(); using (StreamReader myReader = new StreamReader(MainSettings.DataDirectory + ProfileName + $"\\{ProfileName}.json")) { ProfileSettings newFile = new ProfileSettings(); MainSettings.jsonReader = new JsonTextReader(myReader); newFile = MainSettings.serializer.Deserialize <ProfileSettings>(MainSettings.jsonReader); AuthorisationData = newFile.AuthorisationData; Config = newFile.Config; LoadedFromFile = true; } } else { if (File.Exists("config.txt")) { using (StreamReader myReader = new StreamReader("config.txt")) { MainSettings.jsonReader = new JsonTextReader(myReader); Config = MainSettings.serializer.Deserialize <ConfigClass>(MainSettings.jsonReader); Console.WriteLine("Config settings imported."); Console.WriteLine(); } } else { GetConfigDataFromUser(); } } EsiClient = new EsiClient(Config.ConfigOutput()); }
internal CharacterWalletData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
public Authenticator(ref ProfileSettings settings) { Settings = settings; }
internal CharacterData(ref ProfileSettings settings) : base(ref settings) { CharacterID = Settings.AuthorisationData.CharacterID; GetData(); }
internal IndustryData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal DogmaData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal PublicData(ref ProfileSettings settings) : base(ref settings) { CreateData(ref settings); }
public MarketData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal CorporationWalletData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal MailData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal OpportunitiesData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal SovereigntyData(ref ProfileSettings settings) : base(ref settings) { }
internal UserInterfaceData(ref ProfileSettings settings) : base(ref settings) { }
public CorporationData(ref ProfileSettings settings) : base(ref settings) { CorporationID = Settings.AuthorisationData.CorporationID; GetData(); }
internal FactionWarfareData(ref ProfileSettings settings) : base(ref settings) { GetData(); }
internal UniverseData(ref ProfileSettings settings) : base(ref settings) { }
protected DataClassesBase(ref ProfileSettings settings) { Settings = settings; SetupTimer(); }
internal IncursionsData(ref ProfileSettings settings) : base(ref settings) { GetData(); }