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