public MainWindow() { InitializeComponent(); this.DoubleBuffered = true; mainWindow = this; paletteData = new PaletteData(PaletteFormat.FORMAT_2BPP, PaletteOrder.BGR); graphicsData = new GraphicsData(paletteData); this.Icon = new Icon(this.GetType().Assembly.GetManifestResourceStream("TiledGGD.program_icon.ico")); updateMenu(); }