Exemplo n.º 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);
 }
Exemplo n.º 2
0
 internal AllianceData(ref ProfileSettings settings) : base(ref settings)
 {
     AllianceID = Settings.AuthorisationData.AllianceID;
     if (AllianceID > 0)
     {
         GetData();
     }
 }
Exemplo n.º 3
0
 private CorporationData(ref ProfileSettings settings, bool isATempItem) : base(ref settings)
 {
     CorporationID = Settings.AuthorisationData.CorporationID;
     if (!isATempItem)
     {
         GetData();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (Settings != null)
         {
             Settings.Dispose();
             Settings = null;
         }
     }
 }
Exemplo n.º 7
0
 public Profile(ref MainSettings mainSettings, ConfigClass config)
 {
     Settings = new ProfileSettings(ref mainSettings)
     {
         Config = config
     };
     Authenticate();
     if (!Settings.MainSettings.NoDownloading)
     {
         CreateData();
     }
 }
Exemplo n.º 8
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // dispose managed resources
         if (Settings != null)
         {
             Settings.Dispose();
             Settings = null;
         }
         // Dispose remaining objects,
     }
 }
Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 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());
 }
Exemplo n.º 11
0
 internal CharacterWalletData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 12
0
 public Authenticator(ref ProfileSettings settings)
 {
     Settings = settings;
 }
Exemplo n.º 13
0
 internal CharacterData(ref ProfileSettings settings) : base(ref settings)
 {
     CharacterID = Settings.AuthorisationData.CharacterID;
     GetData();
 }
Exemplo n.º 14
0
 internal IndustryData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 15
0
 internal DogmaData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 16
0
 internal PublicData(ref ProfileSettings settings) : base(ref settings)
 {
     CreateData(ref settings);
 }
Exemplo n.º 17
0
 public MarketData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 18
0
 internal CorporationWalletData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 19
0
 internal MailData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 20
0
 internal OpportunitiesData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 21
0
 internal SovereigntyData(ref ProfileSettings settings) : base(ref settings)
 {
 }
Exemplo n.º 22
0
 internal UserInterfaceData(ref ProfileSettings settings) : base(ref settings)
 {
 }
Exemplo n.º 23
0
 public CorporationData(ref ProfileSettings settings) : base(ref settings)
 {
     CorporationID = Settings.AuthorisationData.CorporationID;
     GetData();
 }
Exemplo n.º 24
0
 internal FactionWarfareData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }
Exemplo n.º 25
0
 internal UniverseData(ref ProfileSettings settings) : base(ref settings)
 {
 }
Exemplo n.º 26
0
 protected DataClassesBase(ref ProfileSettings settings)
 {
     Settings = settings;
     SetupTimer();
 }
Exemplo n.º 27
0
 internal IncursionsData(ref ProfileSettings settings) : base(ref settings)
 {
     GetData();
 }