Move init of form icons to ctor (from InitializeComponent)

tested the `global::` syntax on VS2019, the Designer refuses to cooperate
This commit is contained in:
YoshiRulz 2020-06-22 06:06:15 +10:00
parent 03d7fc2498
commit 31e621d64e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
131 changed files with 65 additions and 66 deletions

View File

@ -192,7 +192,6 @@
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.OK);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.logo;
this.MinimumSize = new System.Drawing.Size(453, 253);
this.Name = "BizBox";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -12,6 +12,7 @@ namespace BizHawk.Client.EmuHawk
public BizBox()
{
InitializeComponent();
Icon = Properties.Resources.logo;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)

View File

@ -129,7 +129,6 @@
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.logo;
this.MainMenuStrip = this.menuStrip1;
this.Name = "CoreFeatureAnalysis";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -111,6 +111,7 @@ namespace BizHawk.Client.EmuHawk
public CoreFeatureAnalysis()
{
InitializeComponent();
Icon = Properties.Resources.logo;
KnownCores = new Dictionary<string, CoreInfo>();
}

View File

@ -31,6 +31,7 @@ namespace BizHawk.Client.EmuHawk.CustomControls
{
var icon = GetMessageBoxIcon(boxIcon);
InitializeComponent();
Icon = Properties.Resources.MsgBox_MultiSize;
ControlBox = false; // Do not set in designer (causes problems with auto scaling)
messageLbl.Text = message;

View File

@ -110,7 +110,6 @@
this.Controls.Add(this.btn2);
this.Controls.Add(this.messageLbl);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.MsgBox_MultiSize;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DialogBox";

View File

@ -123,7 +123,6 @@
this.Controls.Add(this.Port1ComboBox);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "A7800ControllerSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Controller Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -99,7 +99,6 @@
this.Controls.Add(this.Port1ComboBox);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "A7800FilterSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Filter Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void A7800FilterSettings_Load(object sender, EventArgs e)

View File

@ -157,7 +157,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "AmstradCpcAudioSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Audio Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_settings = settings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -113,7 +113,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "AmstradCpcNonSyncSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Other Non-Sync Settings";

View File

@ -16,6 +16,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_settings = settings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -139,7 +139,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "AmstradCpcPokeMemory";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Poke Memory";

View File

@ -15,6 +15,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_cpc = cpc;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void OkBtn_Click(object sender, EventArgs e)

View File

@ -142,7 +142,6 @@
this.ClientSize = new System.Drawing.Size(323, 90);
this.Controls.Add(this.flpDialog);
this.Controls.Add(this.flpDialogButtons);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.Lightning_MultiSize;
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(339, 129);
this.Name = "AutofireConfig";

View File

@ -19,6 +19,7 @@ namespace BizHawk.Client.EmuHawk
_autoFireController = autoFireController;
_stickyXorAdapter = stickyXorAdapter;
InitializeComponent();
Icon = Properties.Resources.Lightning_MultiSize;
}
private void AutofireConfig_Load(object sender, EventArgs e)

View File

@ -123,7 +123,6 @@
this.Controls.Add(this.Port1ComboBox);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "ColecoControllerSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Controller Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = settings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void ColecoControllerSettings_Load(object sender, EventArgs e)

View File

@ -196,7 +196,6 @@
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.gambatte_MultiSize;
this.Name = "CGBColorChooserForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Game Boy Color Palette Config";

View File

@ -11,6 +11,7 @@ namespace BizHawk.Client.EmuHawk
private CGBColorChooserForm()
{
InitializeComponent();
Icon = Properties.Resources.gambatte_MultiSize;
bmpView1.ChangeBitmapSize(new Size(256, 128));
}

View File

@ -314,7 +314,6 @@
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.gambatte_MultiSize;
this.MinimumSize = new System.Drawing.Size(310, 264);
this.Name = "ColorChooserForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -14,6 +14,7 @@ namespace BizHawk.Client.EmuHawk
private ColorChooserForm()
{
InitializeComponent();
Icon = Properties.Resources.gambatte_MultiSize;
}
private readonly Color[] _colors = new Color[12];

View File

@ -125,7 +125,6 @@
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.tabControl1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.dual_MultiSize;
this.Name = "DGBPrefs";
this.Text = "Gameboy Link Settings";
this.tabControl1.ResumeLayout(false);

View File

@ -9,6 +9,7 @@ namespace BizHawk.Client.EmuHawk
private DGBPrefs()
{
InitializeComponent();
Icon = Properties.Resources.dual_MultiSize;
}
private void PutSettings(GambatteLink.GambatteLinkSettings s, GambatteLink.GambatteLinkSyncSettings ss)

View File

@ -76,7 +76,6 @@
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.gbPrefControl1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.gambatte_MultiSize;
this.Name = "GBPrefs";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Game Boy Settings";

View File

@ -8,6 +8,7 @@ namespace BizHawk.Client.EmuHawk
private GBPrefs()
{
InitializeComponent();
Icon = Properties.Resources.gambatte_MultiSize;
}
public static void DoGBPrefsDialog(MainForm mainForm, Gameboy gb)

View File

@ -223,7 +223,6 @@
this.Controls.Add(this.HotkeyTabControl);
this.Controls.Add(this.AutoTabCheckBox);
this.Controls.Add(this.label38);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.HotKeys_MultiSize;
this.Name = "HotkeyConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Configure Hotkeys";

View File

@ -16,6 +16,7 @@ namespace BizHawk.Client.EmuHawk
{
_config = config;
InitializeComponent();
Icon = Properties.Resources.HotKeys_MultiSize;
tabPage1.Focus();
}

View File

@ -123,7 +123,6 @@
this.Controls.Add(this.Port1ComboBox);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "IntvControllerSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Controller Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -113,7 +113,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "N64ControllersSetup";

View File

@ -24,6 +24,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void N64ControllersSetup_Load(object sender, EventArgs e)

View File

@ -4626,7 +4626,6 @@
this.Controls.Add(this.SaveButton);
this.Controls.Add(this.N64plugintabcontrol);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.monitor_MultiSize;
this.Name = "N64VideoPluginConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Plugin Settings";

View File

@ -67,6 +67,7 @@ namespace BizHawk.Client.EmuHawk
}
InitializeComponent();
Icon = Properties.Resources.monitor_MultiSize;
}
private void CancelBtn_Click(object sender, EventArgs e)

View File

@ -144,7 +144,6 @@
this.Controls.Add(this.checkBoxFamicom);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "NesControllerSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "NES Controller Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
// TODO: use combobox extension and add descriptions to enum values
comboBoxFamicom.Items.AddRange(NESControlSettings.GetFamicomExpansionValues().ToArray());

View File

@ -140,7 +140,6 @@
this.Controls.Add(this.buttonOK);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.propertyGrid1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.QuickNes_MultiSize;
this.MinimumSize = new System.Drawing.Size(390, 285);
this.Name = "QuickNesConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -23,6 +23,7 @@ namespace BizHawk.Client.EmuHawk
_config = config;
_settings = settings;
InitializeComponent();
Icon = Properties.Resources.QuickNes_MultiSize;
}
private void QuickNesConfig_Load(object sender, EventArgs e)

View File

@ -427,7 +427,6 @@
this.Controls.Add(this.btnOK);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "PSXControllerConfig";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void PSXControllerConfigNew_Load(object sender, EventArgs e)

View File

@ -131,7 +131,6 @@
this.Controls.Add(this.ProfileSelectComboBox);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(315, 280);
this.Name = "ProfileConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -192,7 +192,6 @@
this.Controls.Add(this.label1);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "SNESControllerSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Controller Settings";

View File

@ -18,6 +18,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void SNESControllerSettings_Load(object sender, EventArgs e)

View File

@ -121,7 +121,6 @@
this.Controls.Add(this.BackgroundPanel);
this.Controls.Add(this.OkBtn);
this.Controls.Add(this.CancelBtn);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.calculator_MultiSize;
this.Name = "TI83PaletteConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Palette Config";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_settings = settings;
InitializeComponent();
Icon = Properties.Resources.calculator_MultiSize;
}
private void TI83PaletteConfig_Load(object sender, EventArgs e)

View File

@ -179,7 +179,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "ZxSpectrumAudioSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Audio Settings";

View File

@ -16,6 +16,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_settings = settings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -190,7 +190,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "ZxSpectrumCoreEmulationSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Core Emulation Settings";

View File

@ -16,6 +16,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -159,7 +159,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "ZxSpectrumJoystickSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Joystick Settings";

View File

@ -18,6 +18,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_syncSettings = syncSettings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -148,7 +148,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "ZxSpectrumNonSyncSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Other Non-Sync Settings";

View File

@ -17,6 +17,7 @@ namespace BizHawk.Client.EmuHawk
_mainForm = mainForm;
_settings = settings;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void IntvControllerSettings_Load(object sender, EventArgs e)

View File

@ -139,7 +139,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.OkBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController_MultiSize;
this.Name = "ZxSpectrumPokeMemory";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Poke Memory";

View File

@ -16,6 +16,7 @@ namespace BizHawk.Client.EmuHawk
_speccy = speccy;
InitializeComponent();
Icon = Properties.Resources.GameController_MultiSize;
}
private void OkBtn_Click(object sender, EventArgs e)

View File

@ -105,7 +105,6 @@
this.Controls.Add(this.CommentGrid);
this.Controls.Add(this.OK);
this.Controls.Add(this.Cancel);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio_MultiSize;
this.MinimumSize = new System.Drawing.Size(188, 121);
this.Name = "EditCommentsForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -21,6 +21,7 @@ namespace BizHawk.Client.EmuHawk
_sortReverse = false;
InitializeComponent();
Icon = Properties.Resources.TAStudio_MultiSize;
}
private void EditCommentsForm_Load(object sender, EventArgs e)

View File

@ -197,7 +197,6 @@
this.Controls.Add(this.SubGrid);
this.Controls.Add(this.OK);
this.Controls.Add(this.Cancel);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio_MultiSize;
this.MinimumSize = new System.Drawing.Size(188, 121);
this.Name = "EditSubtitlesForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -19,6 +19,7 @@ namespace BizHawk.Client.EmuHawk
_selectedMovie = movie;
_readOnly = readOnly;
InitializeComponent();
Icon = Properties.Resources.TAStudio_MultiSize;
}
private void EditSubtitlesForm_Load(object sender, EventArgs e)

View File

@ -356,7 +356,6 @@
this.Controls.Add(this.BrowseMovies);
this.Controls.Add(this.OK);
this.Controls.Add(this.Cancel);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio_MultiSize;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(547, 228);

View File

@ -43,6 +43,7 @@ namespace BizHawk.Client.EmuHawk
_emulator = emulator;
_movieSession = movieSession;
InitializeComponent();
Icon = Properties.Resources.TAStudio_MultiSize;
MovieView.RetrieveVirtualItem += MovieView_QueryItemText;
MovieView.VirtualMode = true;
_sortReverse = false;

View File

@ -178,7 +178,6 @@
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.OK);
this.Controls.Add(this.Cancel);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio_MultiSize;
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(1440, 201);
this.MinimizeBox = false;

View File

@ -33,6 +33,7 @@ namespace BizHawk.Client.EmuHawk
_movieSession = movieSession;
_firmwareManager = firmwareManager;
InitializeComponent();
Icon = Properties.Resources.TAStudio_MultiSize;
if (!_emulator.HasSavestates())
{

View File

@ -222,7 +222,6 @@
this.Controls.Add(this.Message);
this.Controls.Add(this.Cancel);
this.Controls.Add(this.OK);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio_MultiSize;
this.MinimumSize = new System.Drawing.Size(272, 225);
this.Name = "SubtitleMaker";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -13,6 +13,7 @@ namespace BizHawk.Client.EmuHawk
public SubtitleMaker()
{
InitializeComponent();
Icon = Properties.Resources.TAStudio_MultiSize;
}
public void DisableFrame()

View File

@ -1171,7 +1171,6 @@
this.Controls.Add(this.ControlsBox);
this.Controls.Add(this.BotStatusStrip);
this.Controls.Add(this.BotMenu);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.basicbot;
this.MainMenuStrip = this.BotMenu;
this.Name = "BasicBot";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -81,6 +81,7 @@ namespace BizHawk.Client.EmuHawk
public BasicBot()
{
InitializeComponent();
Icon = Properties.Resources.basicbot;
Text = DialogTitle;
Settings = new BasicBotSettings();

View File

@ -60,6 +60,7 @@ namespace BizHawk.Client.EmuHawk
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
InitializeComponent();
Icon = Properties.Resources.cdlogger_MultiSize;
tsbViewStyle.SelectedIndex = 0;

View File

@ -295,7 +295,6 @@
this.Controls.Add(this.lvCDL);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.cdlogger_MultiSize;
this.MainMenuStrip = this.menuStrip1;
this.MinimumSize = new System.Drawing.Size(150, 130);
this.Name = "CDL";

View File

@ -618,7 +618,6 @@
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.CheatsMenu);
this.Controls.Add(this.CheatListView);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.Freeze_MultiSize;
this.MinimumSize = new System.Drawing.Size(285, 384);
this.Name = "Cheats";
this.Text = "Cheats";

View File

@ -33,6 +33,7 @@ namespace BizHawk.Client.EmuHawk
public Cheats()
{
InitializeComponent();
Icon = Properties.Resources.Freeze_MultiSize;
Settings = new CheatsSettings();
Closing += (o, e) =>

View File

@ -362,7 +362,6 @@
this.Controls.Add(this.RegistersGroupBox);
this.Controls.Add(this.DisassemblerBox);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.Bug_MultiSize;
this.MainMenuStrip = this.menuStrip1;
this.Name = "GenericDebugger";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -16,6 +16,7 @@ namespace BizHawk.Client.EmuHawk
public GenericDebugger()
{
InitializeComponent();
Icon = Properties.Resources.Bug_MultiSize;
Closing += (o, e) => DisengageDebugger();
DisassemblerView.QueryItemText += DisassemblerView_QueryItemText;

View File

@ -504,7 +504,6 @@
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.menuStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.gambatte_MultiSize;
this.MainMenuStrip = this.menuStrip1;
this.Name = "GbGpuView";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -57,6 +57,7 @@ namespace BizHawk.Client.EmuHawk
public GbGpuView()
{
InitializeComponent();
Icon = Properties.Resources.gambatte_MultiSize;
bmpViewBG.ChangeBitmapSize(256, 256);
bmpViewWin.ChangeBitmapSize(256, 256);
bmpViewTiles1.ChangeBitmapSize(128, 192);

View File

@ -120,7 +120,6 @@
this.Controls.Add(this.label1);
this.Controls.Add(this.paperScroll);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.gambatte_MultiSize;
this.MainMenuStrip = this.menuStrip1;
this.MaximizeBox = false;
this.Name = "GBPrinterView";

View File

@ -30,6 +30,7 @@ namespace BizHawk.Client.EmuHawk
public GBPrinterView()
{
InitializeComponent();
Icon = Properties.Resources.gambatte_MultiSize;
// adjust the color of the printed output to be more papery
_paperAdjustment = new ColorMatrix

View File

@ -174,7 +174,6 @@
this.Controls.Add(this.panel1);
this.Controls.Add(this.listBoxWidgets);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.gba_MultiSize.Value;
this.KeyPreview = true;
this.MainMenuStrip = this.menuStrip1;
this.Name = "GbaGpuView";

View File

@ -33,6 +33,7 @@ namespace BizHawk.Client.EmuHawk
public GbaGpuView()
{
InitializeComponent();
Icon = Properties.Resources.gba_MultiSize.Value;
// TODO: hook up something
// we do this twice to avoid having to & 0x7fff with every color
int[] tmp = GBColors.GetLut(GBColors.ColorType.vivid);

View File

@ -117,7 +117,6 @@
this.Controls.Add(this.txtCheat);
this.Controls.Add(this.btnGo);
this.Controls.Add(this.mnuGameShark);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.Shark_MultiSize;
this.MainMenuStrip = this.mnuGameShark;
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(230, 155);

View File

@ -25,6 +25,7 @@ namespace BizHawk.Client.EmuHawk
public GameShark()
{
InitializeComponent();
Icon = Properties.Resources.Shark_MultiSize;
}
public void Restart()

View File

@ -644,7 +644,6 @@
this.Controls.Add(this.Header);
this.Controls.Add(this.MemoryViewerBox);
this.Controls.Add(this.HexMenuStrip);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.poke_MultiSize;
this.MainMenuStrip = this.HexMenuStrip;
this.MinimumSize = new System.Drawing.Size(360, 180);
this.Name = "HexEditor";

View File

@ -121,6 +121,7 @@ namespace BizHawk.Client.EmuHawk
_fontHeight = fontSize1.Height;
InitializeComponent();
Icon = Properties.Resources.poke_MultiSize;
AddressesLabel.BackColor = Color.Transparent;
SetHeader();
Closing += (o, e) => CloseHexFind();

View File

@ -877,7 +877,6 @@
this.Controls.Add(this.OutputMessages);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.textdoc_MultiSize;
this.MainMenuStrip = this.menuStrip1;
this.MinimumSize = new System.Drawing.Size(400, 180);
this.Name = "LuaConsole";

View File

@ -73,6 +73,7 @@ namespace BizHawk.Client.EmuHawk
_lastColumnSorted = "";
InitializeComponent();
Icon = Properties.Resources.textdoc_MultiSize;
Closing += (o, e) =>
{

View File

@ -151,7 +151,6 @@
this.Controls.Add(this.FilterBox);
this.Controls.Add(this.FunctionView);
this.Controls.Add(this.OK);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.textdoc_MultiSize;
this.MinimumSize = new System.Drawing.Size(200, 50);
this.Name = "LuaFunctionsForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -21,6 +21,7 @@ namespace BizHawk.Client.EmuHawk
{
_docs = docs;
InitializeComponent();
Icon = Properties.Resources.textdoc_MultiSize;
FunctionView.RetrieveVirtualItem += FunctionView_QueryItemText;
}

View File

@ -161,7 +161,6 @@
this.Controls.Add(this.CallButton);
this.Controls.Add(this.FunctionView);
this.Controls.Add(this.OK);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.textdoc_MultiSize;
this.MinimumSize = new System.Drawing.Size(360, 150);
this.Name = "LuaRegisteredFunctionsList";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -14,6 +14,7 @@ namespace BizHawk.Client.EmuHawk
{
_registeredFunctions = registeredFunctions;
InitializeComponent();
Icon = Properties.Resources.textdoc_MultiSize;
}
public Point StartLocation { get; set; } = new Point(0, 0);

View File

@ -35,7 +35,6 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 262);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.textdoc_MultiSize;
this.Name = "LuaWinform";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Lua Dialog";

View File

@ -19,6 +19,7 @@ namespace BizHawk.Client.EmuHawk
_ownerFile = ownerFile;
_luaImp = luaImp;
InitializeComponent();
Icon = Properties.Resources.textdoc_MultiSize;
StartPosition = FormStartPosition.CenterParent;
Closing += (o, e) => CloseThis();
}

View File

@ -190,7 +190,6 @@
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.SaveRunButton);
this.Controls.Add(this.MultiDiskMenuStrip);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.dual_MultiSize;
this.MainMenuStrip = this.MultiDiskMenuStrip;
this.Name = "MultiDiskBundler";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

View File

@ -25,6 +25,7 @@ namespace BizHawk.Client.EmuHawk
public MultiDiskBundler()
{
InitializeComponent();
Icon = Properties.Resources.dual_MultiSize;
}
private void MultiGameCreator_Load(object sender, EventArgs e) => Restart();

View File

@ -93,7 +93,6 @@
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon_MultiSize;
this.Name = "BarcodeEntry";
this.Text = "Barcode Entry";
this.ResumeLayout(false);

View File

@ -13,6 +13,7 @@ namespace BizHawk.Client.EmuHawk
public BarcodeEntry()
{
InitializeComponent();
Icon = Properties.Resources.NESControllerIcon_MultiSize;
}
public void Restart()

View File

@ -189,7 +189,6 @@
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon_MultiSize;
this.Name = "NESMusicRipper";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Music Ripper";

View File

@ -23,6 +23,7 @@ namespace BizHawk.Client.EmuHawk
public NESMusicRipper()
{
InitializeComponent();
Icon = Properties.Resources.NESControllerIcon_MultiSize;
SyncContents();
}

View File

@ -430,7 +430,6 @@
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.menuStrip1);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon_MultiSize;
this.MainMenuStrip = this.menuStrip1;
this.MinimumSize = new System.Drawing.Size(687, 588);
this.Name = "NESNameTableViewer";

Some files were not shown because too many files have changed in this diff Show More