UI: Fixed VS crash when opening main window in form designer

This commit is contained in:
Sour 2019-01-19 18:53:42 -05:00
parent 4642154bb8
commit d1e7d7c016
2 changed files with 9 additions and 6 deletions

View file

@ -673,7 +673,7 @@
//
// tmrUpdate
//
this.tmrUpdate.Enabled = true;
this.tmrUpdate.Enabled = false;
this.tmrUpdate.Interval = 250;
this.tmrUpdate.Tick += new System.EventHandler(this.tmrUpdate_Tick);
//

View file

@ -25,11 +25,14 @@ namespace Mesen.GUI.Controls
{
InitializeComponent();
this.btnNext.KeyUp += Child_KeyUp;
this.btnPause.KeyUp += Child_KeyUp;
this.btnPrevious.KeyUp += Child_KeyUp;
this.cboTrack.KeyUp += Child_KeyUp;
this.trkVolume.KeyUp += Child_KeyUp;
if(!IsDesignMode) {
this.tmrUpdate.Enabled = true;
this.btnNext.KeyUp += Child_KeyUp;
this.btnPause.KeyUp += Child_KeyUp;
this.btnPrevious.KeyUp += Child_KeyUp;
this.cboTrack.KeyUp += Child_KeyUp;
this.trkVolume.KeyUp += Child_KeyUp;
}
}
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)