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