Took out the code for remembering and setting the slice settings tab and added new code that puts it

and reads it from the user settings db.
This commit is contained in:
Lars Brubaker 2015-04-16 18:08:43 -07:00
parent b5d3bb9c04
commit bcd67d4aa1
6 changed files with 74 additions and 92 deletions

View file

@ -82,12 +82,15 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
{
this.MouseEnter += new EventHandler(onMouse_Enter);
this.MouseLeave += new EventHandler(onMouse_Leave);
this.MouseUp += new MouseEventHandler(onMouse_Up);
this.MouseUp += (sender, e) =>
{
UiThread.RunOnIdle(onMouse_Up, e);
};
}
private void onMouse_Up(object sender, EventArgs e)
private void onMouse_Up(object state)
{
MouseEventArgs mouseEvent = e as MouseEventArgs;
MouseEventArgs mouseEvent = state as MouseEventArgs;
//Turns this into a standard 'click' event
if (this.PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
{