Exemplo n.º 1
0
 public override bool IsEnabled(HexViewContext context) => true;
Exemplo n.º 2
0
 protected bool IsReadOnly(HexViewContext context) => context.HexView.Buffer.IsReadOnly || context.HexView.Options.DoesViewProhibitUserInput();
Exemplo n.º 3
0
 public override bool IsEnabled(HexViewContext context) => !context.HexView.Selection.IsEmpty;
Exemplo n.º 4
0
 public override void Execute(HexViewContext context)
 {
 }
Exemplo n.º 5
0
 public override string?GetHeader(HexViewContext context) => !context.HexView.Selection.IsEmpty ? dnSpy_Resources.ClearSelectedBytesCommand : dnSpy_Resources.ClearByteCommand;
Exemplo n.º 6
0
 public override bool IsVisible(HexViewContext context) => !IsReadOnly(context) && base.IsVisible(context);
Exemplo n.º 7
0
 public override bool IsVisible(HexViewContext context) =>
 context.HexView.BufferLines.BufferSpan != new HexBufferSpan(context.HexView.Buffer, context.HexView.Buffer.Span);
Exemplo n.º 8
0
 public override bool IsVisible(HexViewContext context) => context.HexView.Buffer.IsVolatile;
Exemplo n.º 9
0
 public override string GetHeader(HexViewContext context) => string.Format(dnSpy_Resources.CopyDataCommand, "UInt64" + " (" + dnSpy_Resources.BigEndian + ")");
Exemplo n.º 10
0
 public override string GetHeader(HexViewContext context) => string.Format(dnSpy_Resources.CopyDataCommand, "UInt32");
Exemplo n.º 11
0
 public override string GetHeader(HexViewContext context) => context.HexView.Buffer.IsMemory ? dnSpy_Resources.GoToAddressCommand : dnSpy_Resources.GoToOffsetCommand;