private void GOPosition_Click(object sender, RoutedEventArgs e) { if (long.TryParse(PositionText.Text, out var position)) { HexEdit.SetPosition(position, 1); } else { MessageBox.Show("Enter long value."); } ViewMenu.IsSubmenuOpen = false; }
private void SetPositionButton_Click(object sender, RoutedEventArgs e) { long position = 0; if (long.TryParse(PositionText.Text, out position)) { HexEdit.SetPosition(position, 1); } else { MessageBox.Show("Enter long value."); } }
private void GOHexPosition_Click(object sender, RoutedEventArgs e) { var(success, position) = ByteConverters.HexLiteralToLong(PositionHexText.Text); if (success && position > 0) { HexEdit.SetPosition(position, 1); } else { MessageBox.Show("Enter hexa value."); } ViewMenu.IsSubmenuOpen = false; }