コード例 #1
0
 public override bool IsEnabled(HexViewContext context) => true;
コード例 #2
0
ファイル: EditFieldCommand.cs プロジェクト: pashav15/pashav
 protected bool IsReadOnly(HexViewContext context) => context.HexView.Buffer.IsReadOnly || context.HexView.Options.DoesViewProhibitUserInput();
コード例 #3
0
 public override bool IsEnabled(HexViewContext context) => !context.HexView.Selection.IsEmpty;
コード例 #4
0
 public override void Execute(HexViewContext context)
 {
 }
コード例 #5
0
 public override string?GetHeader(HexViewContext context) => !context.HexView.Selection.IsEmpty ? dnSpy_Resources.ClearSelectedBytesCommand : dnSpy_Resources.ClearByteCommand;
コード例 #6
0
 public override bool IsVisible(HexViewContext context) => !IsReadOnly(context) && base.IsVisible(context);
コード例 #7
0
 public override bool IsVisible(HexViewContext context) =>
 context.HexView.BufferLines.BufferSpan != new HexBufferSpan(context.HexView.Buffer, context.HexView.Buffer.Span);
コード例 #8
0
ファイル: Commands.cs プロジェクト: pashav15/pashav
 public override bool IsVisible(HexViewContext context) => context.HexView.Buffer.IsVolatile;
コード例 #9
0
ファイル: Commands.cs プロジェクト: pashav15/pashav
 public override string GetHeader(HexViewContext context) => string.Format(dnSpy_Resources.CopyDataCommand, "UInt64" + " (" + dnSpy_Resources.BigEndian + ")");
コード例 #10
0
ファイル: Commands.cs プロジェクト: pashav15/pashav
 public override string GetHeader(HexViewContext context) => string.Format(dnSpy_Resources.CopyDataCommand, "UInt32");
コード例 #11
0
 public override string GetHeader(HexViewContext context) => context.HexView.Buffer.IsMemory ? dnSpy_Resources.GoToAddressCommand : dnSpy_Resources.GoToOffsetCommand;