Convert KeepOpen to property, revise popup close logic
This commit is contained in:
parent
c0b638e2e7
commit
22c0125b42
12 changed files with 56 additions and 60 deletions
|
|
@ -142,14 +142,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
graphics2D.Render(arrow, this.Enabled ? Color.Black : Color.Gray);
|
||||
}
|
||||
|
||||
public bool KeepMenuOpen()
|
||||
public bool KeepMenuOpen
|
||||
{
|
||||
if (SubMenu != null)
|
||||
get
|
||||
{
|
||||
return SubMenu.ContainsFocus;
|
||||
}
|
||||
if (SubMenu != null)
|
||||
{
|
||||
return SubMenu.ContainsFocus;
|
||||
}
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -171,10 +174,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
public bool KeepMenuOpen()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool KeepMenuOpen => false;
|
||||
|
||||
public bool Checked
|
||||
{
|
||||
|
|
@ -245,10 +245,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
base.OnLoad(args);
|
||||
}
|
||||
|
||||
public bool KeepMenuOpen()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool KeepMenuOpen => false;
|
||||
|
||||
public IList<GuiWidget> SiblingRadioButtonList { get; set; }
|
||||
|
||||
|
|
@ -421,10 +418,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
return menuItem;
|
||||
}
|
||||
|
||||
public bool KeepMenuOpen()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool KeepMenuOpen => false;
|
||||
|
||||
public class MenuItem : SimpleButton
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue