Example #1
0
 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);
 }
Example #2
0
 internal AllianceData(ref ProfileSettings settings) : base(ref settings)
 {
     AllianceID = Settings.AuthorisationData.AllianceID;
     if (AllianceID > 0)
     {
         GetData();
     }
 }
Example #3
0
 private CorporationData(ref ProfileSettings settings, bool isATempItem) : base(ref settings)
 {
     CorporationID = Settings.AuthorisationData.CorporationID;
     if (!isATempItem)
     {
         GetData();
     }
 }
Example #4
0
 /// <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();
     }
 }
Example #5
0
 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);
 }
Example #6
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (Settings != null)
         {
             Settings.Dispose();
             Settings = null;
         }
     }
 }
Example #7
0
 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,
     }
 }
Example #9
0
 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;
         }
     }
 }
Example #10
0
 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());
 }
Example #11
0
 internal CharacterWalletData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #12
0
 public Authenticator(ref ProfileSettings settings)
 {
     Settings = settings;
 }
Example #13
0
 internal CharacterData(ref ProfileSettings settings) : base(ref settings)
 {
     CharacterID = Settings.AuthorisationData.CharacterID;
     GetData();
 }
Example #14
0
 internal IndustryData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #15
0
 internal DogmaData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #16
0
 internal PublicData(ref ProfileSettings settings) : base(ref settings)
 {
     CreateData(ref settings);
 }
Example #17
0
 public MarketData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #18
0
 internal CorporationWalletData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #19
0
 internal MailData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #20
0
 internal OpportunitiesData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #21
0
 internal SovereigntyData(ref ProfileSettings settings) : base(ref settings)
 {
 }
Example #22
0
 internal UserInterfaceData(ref ProfileSettings settings) : base(ref settings)
 {
 }
Example #23
0
 public CorporationData(ref ProfileSettings settings) : base(ref settings)
 {
     CorporationID = Settings.AuthorisationData.CorporationID;
     GetData();
 }
Example #24
0
 internal FactionWarfareData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Example #25
0
 internal UniverseData(ref ProfileSettings settings) : base(ref settings)
 {
 }
Example #26
0
 protected DataClassesBase(ref ProfileSettings settings)
 {
     Settings = settings;
     SetupTimer();
 }
Example #27
0
 internal IncursionsData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }