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