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