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