Expose ShowHelp/ShowAbout in ApplicationController
This commit is contained in:
parent
6a60fd5ff8
commit
d819cd0131
2 changed files with 18 additions and 8 deletions
|
|
@ -634,6 +634,22 @@ namespace MatterHackers.MatterControl
|
|||
operationIconsByType.Add(typeof(ImageObject3D), AggContext.StaticData.LoadIcon("140.png", 16, 16, theme.InvertIcons));
|
||||
}
|
||||
|
||||
public void ShowApplicationHelp()
|
||||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
DialogWindow.Show(new HelpPage("AllGuides"));
|
||||
});
|
||||
}
|
||||
|
||||
public void ShowAboutPage()
|
||||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
DialogWindow.Show<AboutPage>();
|
||||
});
|
||||
}
|
||||
|
||||
public ImageSequence GetProcessingSequence(Color color)
|
||||
{
|
||||
int size = (int)Math.Round(80 * GuiWidget.DeviceScale);
|
||||
|
|
|
|||
|
|
@ -103,13 +103,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
}
|
||||
};
|
||||
|
||||
AddMenuItem("Help".Localize(), () =>
|
||||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
DialogWindow.Show(new HelpPage("AllGuides"));
|
||||
});
|
||||
});
|
||||
AddMenuItem("Help".Localize(), ApplicationController.Instance.ShowApplicationHelp);
|
||||
|
||||
this.AddSettingsRow(
|
||||
new SettingsItem(
|
||||
|
|
@ -337,7 +331,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
}
|
||||
aboutMatterControl.Click += (s, e) =>
|
||||
{
|
||||
UiThread.RunOnIdle(() => DialogWindow.Show<AboutPage>());
|
||||
ApplicationController.Instance.ShowAboutPage();
|
||||
};
|
||||
this.AddSettingsRow(aboutMatterControl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue