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