コード例 #1
0
        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 = "";
            }
        }
コード例 #2
0
        private void Encode()
        {
            string indents = new string(' ', innerIndents);

            encodedValue = WizardUTFEncoder.EncodeText(decodedValue, indents);
        }
コード例 #3
0
 private void Decode()
 {
     decodedValue = WizardUTFEncoder.DecodeText(encodedValue);
 }
コード例 #4
0
        private void EncodeButton_Click(object sender, RoutedEventArgs e)
        {
            string indents = new string(' ', Convert.ToInt32(IndentCount.Text) * 2);

            EncodedText.Text = WizardUTFEncoder.EncodeText(DecodedText.Text, indents);
        }