Changed ButtonEventHandler to EventHandler

Made lock disable the selection widget but be more inteligent about re-enabling it after unlock
This commit is contained in:
larsbrubaker 2014-10-24 13:41:13 -07:00
parent e3ba5f3ea7
commit 222a5a46a7
49 changed files with 343 additions and 263 deletions

View file

@ -107,7 +107,7 @@ namespace MatterHackers.MatterControl
saveAsButton.Cursor = Cursors.Hand;
buttonRow.AddChild(saveAsButton);
saveAsButton.Click += new ButtonBase.ButtonEventHandler(saveAsButton_Click);
saveAsButton.Click += new EventHandler(saveAsButton_Click);
textToAddWidget.ActualTextEditWidget.EnterPressed += new KeyEventHandler(ActualTextEditWidget_EnterPressed);
//Adds SaveAs and Close Button to button container
@ -132,7 +132,7 @@ namespace MatterHackers.MatterControl
SubmitForm();
}
void saveAsButton_Click(object sender, MouseEventArgs mouseEvent)
void saveAsButton_Click(object sender, EventArgs mouseEvent)
{
SubmitForm();
}