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