public override bool IsVisible(AsmEditorContext context) => DeleteMethodDefCommand.CanExecute(context.Nodes);
public override bool IsEnabled(CodeContext context) => context.IsDefinition && DeleteMethodDefCommand.CanExecute(context.Nodes);
public override bool IsEnabled(CodeContext context) { return(context.IsLocalTarget && DeleteMethodDefCommand.CanExecute(context.Nodes)); }
protected override bool CanExecute(Context ctx) { return(ctx.ReferenceSegment.IsLocalTarget && DeleteMethodDefCommand.CanExecute(ctx.Nodes)); }
protected override bool CanExecuteInternal(ILSpyTreeNode[] nodes) { return(DeleteMethodDefCommand.CanExecute(nodes)); }
void DeleteCanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = DeleteMethodDefCommand.CanExecute(MainWindow.Instance.SelectedNodes); }