CommandLoader(IWpfCommandManager wpfCommandManager, IFileTabManager fileTabManager, DeleteFieldDefCommand.EditMenuCommand removeCmd, DeleteFieldDefCommand.CodeCommand removeCmd2, FieldDefSettingsCommand.EditMenuCommand settingsCmd, FieldDefSettingsCommand.CodeCommand settingsCmd2) { wpfCommandManager.AddRemoveCommand(removeCmd); wpfCommandManager.AddRemoveCommand(removeCmd2, fileTabManager); wpfCommandManager.AddSettingsCommand(fileTabManager, settingsCmd, settingsCmd2); }
public override bool IsEnabled(CodeContext context) => context.IsDefinition && DeleteFieldDefCommand.CanExecute(context.Nodes);
protected override void Execute(Context ctx) { DeleteFieldDefCommand.Execute(ctx.Nodes); }
protected override void Initialize(Context ctx, MenuItem menuItem) { DeleteFieldDefCommand.Initialize(ctx.Nodes, menuItem); }
public override void Execute(CodeContext context) => DeleteFieldDefCommand.Execute(undoCommandManager, context.Nodes);
protected override bool CanExecute(Context ctx) { return(ctx.ReferenceSegment.IsLocalTarget && DeleteFieldDefCommand.CanExecute(ctx.Nodes)); }
protected override bool CanExecuteInternal(ILSpyTreeNode[] nodes) { return(DeleteFieldDefCommand.CanExecute(nodes)); }
public override void Execute(AsmEditorContext context) => DeleteFieldDefCommand.Execute(undoCommandService, context.Nodes);
void DeleteCanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = DeleteFieldDefCommand.CanExecute(MainWindow.Instance.SelectedNodes); }
void DeleteExecuted(object sender, ExecutedRoutedEventArgs e) { DeleteFieldDefCommand.Execute(MainWindow.Instance.SelectedNodes); }
public override string GetHeader(AsmEditorContext context) { return(DeleteFieldDefCommand.GetHeader(context.Nodes)); }
public override void Execute(AsmEditorContext context) { DeleteFieldDefCommand.Execute(undoCommandManager, context.Nodes); }
public override bool IsEnabled(CodeContext context) { return(context.IsLocalTarget && DeleteFieldDefCommand.CanExecute(context.Nodes)); }
public override string GetHeader(CodeContext context) => DeleteFieldDefCommand.GetHeader(context.Nodes);
protected override void ExecuteInternal(ILSpyTreeNode[] nodes) { DeleteFieldDefCommand.Execute(nodes); }
public override bool IsVisible(AsmEditorContext context) => DeleteFieldDefCommand.CanExecute(context.Nodes);
protected override void Initialize(ILSpyTreeNode[] nodes, MenuItem menuItem) { DeleteFieldDefCommand.Initialize(nodes, menuItem); }
public override string?GetHeader(AsmEditorContext context) => DeleteFieldDefCommand.GetHeader(context.Nodes);
CommandLoader(IWpfCommandService wpfCommandService, IDocumentTabService documentTabService, DeleteFieldDefCommand.EditMenuCommand removeCmd, DeleteFieldDefCommand.CodeCommand removeCmd2, FieldDefSettingsCommand.EditMenuCommand settingsCmd, FieldDefSettingsCommand.CodeCommand settingsCmd2) { wpfCommandService.AddRemoveCommand(removeCmd); wpfCommandService.AddRemoveCommand(removeCmd2, documentTabService); wpfCommandService.AddSettingsCommand(documentTabService, settingsCmd, settingsCmd2); }