Пример #1
0
 protected override IEnumerable <MenuItemAction> GetMenuActions()
 {
     return(new List <MenuItemAction>
     {
         new MenuItemAction("Settings".Localize(), () => sliceSettingsPopOut?.ShowInWindow()),
         new MenuItemAction("Controls".Localize(), () => controlsPopOut?.ShowInWindow()),
         new MenuItemAction("Terminal".Localize(), () => UiThread.RunOnIdle(TerminalWindow.Show)),
     });
 }
Пример #2
0
 private void openControlsPannel_Click()
 {
     UiThread.RunOnIdle(() =>
     {
         if (controlsPopOut != null)
         {
             controlsPopOut.ShowInWindow();
         }
     });
 }
Пример #3
0
 private void openPrintingPannel_Click()
 {
     UiThread.RunOnIdle(() =>
     {
         if (sliceSettingsPopOut != null)
         {
             sliceSettingsPopOut.ShowInWindow();
         }
     });
 }
Пример #4
0
 private bool openControlsPannel_Click()
 {
     UiThread.RunOnIdle(() =>
     {
         if (controlsPopOut != null)
         {
             controlsPopOut.ShowInWindow();
         }
     });
     return(true);
 }