public MainForm(WoWInstallation wowInstallation, WoWLanguagePack languagePack) { InitializeComponent(); // Initialize WoW file system this.wowInstallation = wowInstallation; this.languagePack = languagePack; // Create resources for drawing text zoneInformationBrush = Brushes.White; zoneInformationPen = new Pen(Color.Black, 5); // Get and create resources for error… zoneErrorBrush = Brushes.Red; // Creates the bitmap mapBitmap = new Bitmap(1002, 668, PixelFormat.Format32bppRgb); Size = new Size(this.Width - renderPanel.ClientSize.Width + 1002, this.Height - renderPanel.ClientSize.Height + 668); renderPanel.BackgroundImage = mapBitmap; // Initialization InitializeFileSystem(); LoadDatabases(); LoadFonts(); currentContinent = -1; InitializeMapData(); FillContinents(); FillZones(); LoadCosmicHighlights(); UpdateMap(); }
public MainForm(WoWInstallation wowInstallation, WoWLanguagePack languagePack) { InitializeComponent(); this.wowInstallation = wowInstallation; this.languagePack = languagePack; this.wowFileSystem = wowInstallation.CreateFileSystem(languagePack, false); spellDatabase = LoadDatabase <SpellRecord>(@"DBFilesClient\Spell.dbc"); spellIconDatabase = LoadDatabase <SpellIconRecord>(@"DBFilesClient\SpellIcon.dbc"); countToolStripLabel.Text = string.Format(CultureInfo.CurrentUICulture, Properties.Resources.SpellCountFormatString, spellDatabase.Records.Count); spellInformation = new SpellInformation(spellDatabase); UpdateDisplayInfo(); }