2015-04-08 15:20:10 -07:00
|
|
|
|
using MatterHackers.Agg;
|
2014-12-09 15:16:08 -08:00
|
|
|
|
using MatterHackers.Agg.UI;
|
|
|
|
|
|
using MatterHackers.Localizations;
|
|
|
|
|
|
using MatterHackers.MatterControl.ContactForm;
|
|
|
|
|
|
using MatterHackers.VectorMath;
|
2015-04-08 15:20:10 -07:00
|
|
|
|
using System;
|
2014-12-09 15:16:08 -08:00
|
|
|
|
|
|
|
|
|
|
namespace MatterHackers.MatterControl
|
|
|
|
|
|
{
|
2015-05-20 17:34:55 -07:00
|
|
|
|
public class MenuOptionHelp : MenuBase
|
2015-04-08 15:20:10 -07:00
|
|
|
|
{
|
|
|
|
|
|
public MenuOptionHelp()
|
2015-05-20 17:34:55 -07:00
|
|
|
|
: base("Help".Localize())
|
2015-04-08 15:20:10 -07:00
|
|
|
|
{
|
|
|
|
|
|
}
|
2014-12-09 15:16:08 -08:00
|
|
|
|
|
2015-05-20 17:34:55 -07:00
|
|
|
|
override protected TupleList<string, Func<bool>> GetMenuItems()
|
2015-04-08 15:20:10 -07:00
|
|
|
|
{
|
2015-05-20 17:34:55 -07:00
|
|
|
|
return new TupleList<string, Func<bool>>
|
2015-04-08 15:20:10 -07:00
|
|
|
|
{
|
2014-12-09 15:16:08 -08:00
|
|
|
|
{LocalizedString.Get("Getting Started"), gettingStarted_Click},
|
|
|
|
|
|
{LocalizedString.Get("View Help"), help_Click},
|
|
|
|
|
|
{LocalizedString.Get("Report a Bug"), bug_Click},
|
|
|
|
|
|
{LocalizedString.Get("Release Notes"), notes_Click},
|
|
|
|
|
|
{LocalizedString.Get("About MatterControl"), about_Click},
|
|
|
|
|
|
};
|
2015-04-08 15:20:10 -07:00
|
|
|
|
}
|
2014-12-09 15:16:08 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
private bool bug_Click()
|
|
|
|
|
|
{
|
|
|
|
|
|
UiThread.RunOnIdle((state) =>
|
|
|
|
|
|
{
|
|
|
|
|
|
ContactFormWindow.Open();
|
|
|
|
|
|
});
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
2014-12-09 15:16:08 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
private bool help_Click()
|
|
|
|
|
|
{
|
|
|
|
|
|
UiThread.RunOnIdle((state) =>
|
|
|
|
|
|
{
|
2015-01-22 12:27:18 -08:00
|
|
|
|
MatterControlApplication.Instance.LaunchBrowser("http://www.mattercontrol.com/articles");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
});
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
2014-12-09 15:16:08 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
private bool about_Click()
|
|
|
|
|
|
{
|
|
|
|
|
|
UiThread.RunOnIdle((state) =>
|
|
|
|
|
|
{
|
|
|
|
|
|
AboutWindow.Show();
|
|
|
|
|
|
});
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
2014-12-09 15:16:08 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
private bool notes_Click()
|
2014-12-09 15:16:08 -08:00
|
|
|
|
{
|
|
|
|
|
|
UiThread.RunOnIdle((state) =>
|
|
|
|
|
|
{
|
2015-01-22 12:27:18 -08:00
|
|
|
|
MatterControlApplication.Instance.LaunchBrowser("http://wiki.mattercontrol.com/Release_Notes");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
});
|
2014-12-09 15:16:08 -08:00
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
private bool gettingStarted_Click()
|
|
|
|
|
|
{
|
|
|
|
|
|
UiThread.RunOnIdle((state) =>
|
|
|
|
|
|
{
|
2015-01-22 12:27:18 -08:00
|
|
|
|
MatterControlApplication.Instance.LaunchBrowser("http://www.mattercontrol.com/articles/mattercontrol-getting-started");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|