private void ButtonDec_Click(object sender, RoutedEventArgs e) { decodeResultTxt.Text = "Liczba: "; Golomb g = new Golomb(); decimal result = g.Decode(numberDecTxt.Text, Convert.ToDecimal(rangeDecTxt.Text)); decodeResultTxt.Text += result.ToString(); }
public override void Display() { base.Display(); Output.WriteLine("Decoding sum with Golomb"); Output.WriteLine(""); var documents = new Documents(); var golomb = new Golomb(); documents.WriteText(Utils.Utils.FilesDecoded.GolombDecodeSum, Encoding.ASCII.GetString(golomb.Decode(documents.ReadAllBytes(Utils.Utils.FilesEncoded.GolombEncodeSum, false)))); Output.WriteLine(System.ConsoleColor.Green, "View the file decoded in: " + Utils.Utils.FilesDecoded.GolombDecodeSum.ToString()); Output.WriteLine(""); Output.WriteLine(""); Input.ReadString("Press [Enter] to navigate home"); Program.NavigateHome(); }