public RecentRecipesCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "Recent Recipes", RequestedMenuPosition, true) { _onRecipeLoaded = OnRecipeLoaded; _onRecipeSaved = OnRecipeSaved; _recentRecipies = new RecentRecipies(commandTarget); _recentRecipies.AddRecipe(RecipeFactory.Current.PathName); RecipeFactory.Loaded += _onRecipeLoaded; RecipeFactory.Current.Saved += _onRecipeSaved; }
public RecentAssembliesCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Assembly", "Recent Assemblies", DesiredMenuPosition) { _onRecipeLoaded = OnRecipeLoaded; _onRecipeClosing = OnRecipeClosing; _onAssemblyAdded = OnAssemblyAdded; _recentAssemblies = new RecentAssemblies(); RecipeFactory.Loaded += _onRecipeLoaded; RecipeFactory.Closing += _onRecipeClosing; RecipeFactory.Current.AssemblyAdded += _onAssemblyAdded; }
/// <summary> /// Instantiates the command. /// </summary> /// <param name="commandTarget">The form to act upon.</param> /// <param name="csUnitCtrl">The control on which to operate</param> public RecipeSaveAsCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "Save Recipe &As...", DesiredMenuPosition) { }
public ViewToolBarCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&View", "&Tool Bar", _menuPosition) { ConfigCurrentUser config = new ConfigCurrentUser(); CommandTarget.ToolBarVisible = config.ToolBarVisible; Checked = config.ToolBarVisible; }
public AssemblyAddCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Assembly", "&Add...", DesiredMenuPosition, true) { }
public RecipeOpenCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "&Open Recipe...", RequestedMenuPosition) { }
public SaveResultsAsXmlCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "Save Result As &XML...", _menuPosition, true) { _results = new DefaultXmlWriter(RecipeFactory.Current, string.Empty); RecipeFactory.Loaded += RecipeFactory_Loaded; Enabled = false; }
public AboutCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Help", "&About...", _menuPosition, true) { }
public RecipeNewCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "&New Recipe", _menuPosition) { }
public AssemblyReloadCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Assembly", "R&eload", MenuPosition) { Enabled = false; CsUnitControl.SelectedItems.CollectionChanged += OnSelectedItemsChanged; }
public FileExitCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&File", "E&xit", _menuPosition, true) { }
public CheckForUpdatesCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Help", "Chec&k for Updates", _menuPosition, true) { }
public AssemblyRemoveCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Assembly", "&Remove", MenuPosition, true) { Enabled = false; CsUnitControl.SelectedItems.CollectionChanged += SelectedItemsCollectionChanged; }
public ViewOptionsCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&View", "&Options...", _menuPosition, true) { }
public GotoOnlineDocumentationCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Help", "Online &Documentation", _menuPosition) { }
public ReportBugCommand(ICommandTarget commandTarget, CsUnitControl csUnitCtrl) : base(commandTarget, csUnitCtrl, "&Help", "Report a Bug", _menuPosition) { }