public AddObjects(BlizzardAPIExplorer explorer, PetStorage st) { this.InitializeComponent(); this.explorer = explorer; this.storage = st; this.storage.explorer = explorer; }
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); }