public override string GetHeader(AsmEditorContext context) => RemoveAssemblyCommand.GetHeader(context.Nodes);
public override bool IsVisible(AsmEditorContext context) => RemoveAssemblyCommand.CanExecute(context.Nodes);
public override void Execute(AsmEditorContext context) => RemoveAssemblyCommand.Execute(undoCommandService, documentSaver, appService, context.Nodes);
protected override bool CanExecuteInternal(ILSpyTreeNode[] nodes) { return(RemoveAssemblyCommand.CanExecute(nodes)); }
protected override void ExecuteInternal(ILSpyTreeNode[] nodes) { RemoveAssemblyCommand.Execute(nodes); }
CommandLoader(IWpfCommandService wpfCommandService, IDocumentTabService documentTabService, RemoveAssemblyCommand.EditMenuCommand removeCmd, AssemblySettingsCommand.EditMenuCommand settingsCmd) { wpfCommandService.AddRemoveCommand(removeCmd); wpfCommandService.AddSettingsCommand(documentTabService, settingsCmd, null); }
void DeleteExecuted(object sender, ExecutedRoutedEventArgs e) { RemoveAssemblyCommand.Execute(MainWindow.Instance.SelectedNodes); }
void DeleteCanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = RemoveAssemblyCommand.CanExecute(MainWindow.Instance.SelectedNodes); }
public override void Execute(AsmEditorContext context) { RemoveAssemblyCommand.Execute(undoCommandManager, documentSaver, appWindow, context.Nodes); }
CommandLoader(IWpfCommandManager wpfCommandManager, IFileTabManager fileTabManager, RemoveAssemblyCommand.EditMenuCommand removeCmd, AssemblySettingsCommand.EditMenuCommand settingsCmd) { wpfCommandManager.AddRemoveCommand(removeCmd); wpfCommandManager.AddSettingsCommand(fileTabManager, settingsCmd, null); }