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