Пример #1
0
 public GoToPositionVM(HexPosition offset, HexPosition min, HexPosition max)
 {
     OffsetVM = new HexPositionVM(offset, a => HasErrorUpdated(), false)
     {
         Min = min,
         Max = max,
     };
 }
Пример #2
0
 public SelectVM(HexPosition start, HexPosition end, HexPosition min, HexPosition max)
 {
     StartVM = new HexPositionVM(start, a => HasErrorUpdated(), false)
     {
         Min = min,
         Max = max,
     };
     EndVM = new HexPositionVM(end, a => HasErrorUpdated(), false)
     {
         Min = min,
         Max = max,
     };
 }
Пример #3
0
 public SelectVM(HexPosition start, HexPosition end)
 {
     StartVM             = new HexPositionVM(start, a => HasErrorUpdated(), false);
     EndVM               = new HexPositionVM(end, a => HasErrorUpdated(), false);
     PositionsCollection = new ObservableCollection <PositionVM>();
     PositionsCollection.Add(new PositionVM(PositionKind.Absolute, dnSpy_Resources.GoToAbsolutePosition, dnSpy_Resources.ShortCutKeyCtrl1));
     PositionsCollection.Add(new PositionVM(PositionKind.File, dnSpy_Resources.GoToFilePosition, dnSpy_Resources.ShortCutKeyCtrl2));
     PositionsCollection.Add(new PositionVM(PositionKind.RVA, "RVA", dnSpy_Resources.ShortCutKeyCtrl3));
     PositionsCollection.Add(new PositionVM(PositionKind.CurrentPosition, dnSpy_Resources.GoToCurrentPosition, dnSpy_Resources.ShortCutKeyCtrl4));
     positionsCollectionSelectedItem = PositionsCollection[0];
     PositionLengthCollection        = new ObservableCollection <PositionLengthVM>();
     PositionLengthCollection.Add(new PositionLengthVM(SelectPositionLengthKind.Position, dnSpy_Resources.GoToAbsolutePosition, dnSpy_Resources.ShortCutKeyCtrlO));
     PositionLengthCollection.Add(new PositionLengthVM(SelectPositionLengthKind.Length, dnSpy_Resources.SelectLength, dnSpy_Resources.ShortCutKeyCtrlL));
     positionLengthCollectionSelectedItem = PositionLengthCollection[0];
 }