private void ExtractValuesBtn_Click(object sender, EventArgs e) { VL64Chunks.Items.Clear(); VL64ChunkTxt.Text = VL64ValueTxt.Text = string.Empty; ChunksFoundLbl.Text = "Chunks Found: 0"; string vl64String = VL64StringTxt.Text; while (vl64String.Length != 0) { int chunkLength = (vl64String[0] >> 3) & 7; if (chunkLength > 0 && chunkLength <= vl64String.Length) { string chunk = vl64String.Substring(0, chunkLength); int value = Ancient.DecypherInt(chunk); var vl64Item = new ListViewItem(new[] { chunk, value.ToString() }); VL64Chunks.Items.Add(vl64Item); vl64String = vl64String.Substring(chunkLength); } else { return; } } ChunksFoundLbl.Text = "Chunks Found: " + VL64Chunks.Items.Count; VL64Chunks.Items[0].Selected = true; VL64Chunks.Select(); }
private void AncientDecypherIntegerBtn_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(AncientIntegerOutputTxt.Text)) { AncientIntegerInputTxt.Text = Ancient.DecypherInt(HMessage.ToBytes(AncientIntegerOutputTxt.Text)).ToString(); } }