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