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