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