private void GetHelpItems() { var helpItems = _helpProvider.GetHelpItems(); if (helpItems == null) { return; } HelpItems.Clear(); helpItems.ToList().ForEach(h => HelpItems.Add(new HelpDisplayModel(h))); }
public MainMenu(MainWindow form) { form_ = form; ApplicationItems.Add(new NewFileCommand(form_)); ApplicationItems.Add(new OpenFileCommand(form_)); ApplicationItems.Add(new SaveFileCommand(form_)); ApplicationItems.Add(new SaveAsFileCommand(form_)); ApplicationItems.Add(new SeparatorMenuItem()); ApplicationItems.Add(new QuitCommand(form_)); HelpItems.Add(new FormattingHelp(form_)); HelpItems.Add(new SeparatorMenuItem()); HelpItems.Add(new AboutCommand(form_)); }
public MainMenu(MainWindow form, IEditor <CampaignFile> editor) { ApplicationItems.Add(new NewFileCommand(editor)); ApplicationItems.Add(new OpenFileCommand(editor)); ApplicationItems.Add(new SaveFileCommand(editor)); //ApplicationItems.Add(new SeparatorMenuItem()); ApplicationItems.Add(new ButtonMenuItem() { Text = "&Import / Export", Image = Resources.GetIcon("Package.ico"), Items = { new ImportFileCommand(editor, form), new ExportFileCommand(editor, form) } }); ApplicationItems.Add(new SeparatorMenuItem()); ApplicationItems.Add(new CloseProjectCommand(editor)); ApplicationItems.Add(new SeparatorMenuItem()); ApplicationItems.Add(new SettingsCommand()); //ApplicationItems.Add(new SeparatorMenuItem()); ApplicationItems.Add(new QuitCommand(form)); HelpItems.Add(new FeedbackCommand()); HelpItems.Add(new TutorialsCommand()); HelpItems.Add(new SeparatorMenuItem()); HelpItems.Add(new AboutCommand()); Items.Add(new ButtonMenuItem() { Text = "&Project", Items = { new RunGameCommand(editor), new CheckFilesCommand(editor), new ProjectFolderCommand(editor) } }); }
private HelpItems CreateHelpItemsForPartial() { var items = new HelpItems(); for (var i = 1; i < 6; i++) { items.Add(new HelpItem { HelpDescription = string.Format("Help omschrijving {0}", i), HelpInSource = string.Format("Help in source {0}", i), HelpTopic = string.Format("Help topic {0}", i), HelpTopicId = i.ToString(), HelpVersie = string.Format("versie {0}", i) }); if (i == 1 || i == 2) items[i - 1].HelpDescription = "Specifiek"; } return items; }
private HelpItems CreateHelpItems() { var items = new HelpItems(); for (var i = 1; i < 6; i++) { items.Add(new HelpItem { HelpDescription = string.Format("Help omschrijving {0}", i), HelpInSource = string.Format("Help in source {0}", i), HelpTopic = string.Format("Help topic {0}", i), HelpTopicId = i.ToString(), HelpVersie = string.Format("versie {0}", i) }); } return items; }