Ejemplo n.º 1
0
 public AddObjects(BlizzardAPIExplorer explorer, PetStorage st)
 {
     this.InitializeComponent();
     this.explorer         = explorer;
     this.storage          = st;
     this.storage.explorer = explorer;
 }
Ejemplo n.º 2
0
 public PetImageProvider(BlizzardAPIExplorer explorer)
 {
     this.explorer   = explorer;
     this.folderName = AppDomain.CurrentDomain.BaseDirectory + "tempImages";
     if (Directory.Exists(this.folderName))
     {
         return;
     }
     Directory.CreateDirectory(this.folderName);
 }
Ejemplo n.º 3
0
 public scanner()
 {
     this.explorer = new BlizzardAPIExplorer("42ec6c2554eb4235aaa2c4ccc249b3e7");
     LocalSettings.Load();
     this.petStorage     = new PetStorage(this.explorer);
     this.updater        = new ServersUpdate(this.explorer);
     this.petImageHelper = new PetImageProvider(this.explorer);
     this.InitializeComponent();
     this.updateTimer          = new Timer();
     this.updateTimer.Interval = LocalSettings.settings.TimeToUpdateMin * 60 * 1000;
     this.updateTimer.Tick    += new EventHandler(this.UpdateTimer_Tick);
     this.countTimer           = new Timer();
     this.countTimer.Interval  = 1000;
     this.countTimer.Tick     += new EventHandler(this.CountTimer_Tick);
     this.dataGridView1.Sort((IComparer)this.sorter);
 }
Ejemplo n.º 4
0
 public ServersUpdate(BlizzardAPIExplorer explorer)
 {
     this.explorer = explorer;
     this.fillServers();
 }
Ejemplo n.º 5
0
 public PetStorage(BlizzardAPIExplorer explorer)
 {
     this.explorer = explorer;
 }