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:
parent
b5d3bb9c04
commit
bcd67d4aa1
6 changed files with 74 additions and 92 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue