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