private void DecodeButton_Click(object sender, RoutedEventArgs e) { // Посчитать количество пробелов int indentCount = EncodedText.Text.IndexOfAny(new char[] { '\'', '#' }); if (indentCount != -1) { IndentCount.Text = (indentCount / 2).ToString(); DecodedText.Text = WizardUTFEncoder.DecodeText(EncodedText.Text); } else { DecodedText.Text = ""; } }
private void Encode() { string indents = new string(' ', innerIndents); encodedValue = WizardUTFEncoder.EncodeText(decodedValue, indents); }
private void Decode() { decodedValue = WizardUTFEncoder.DecodeText(encodedValue); }
private void EncodeButton_Click(object sender, RoutedEventArgs e) { string indents = new string(' ', Convert.ToInt32(IndentCount.Text) * 2); EncodedText.Text = WizardUTFEncoder.EncodeText(DecodedText.Text, indents); }