UI: Fixed VS crash when opening main window in form designer
This commit is contained in:
parent
4642154bb8
commit
d1e7d7c016
2 changed files with 9 additions and 6 deletions
2
GUI.NET/Controls/ctrlNsfPlayer.Designer.cs
generated
2
GUI.NET/Controls/ctrlNsfPlayer.Designer.cs
generated
|
@ -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);
|
||||
//
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue