Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.textBox1.Text != "")
     {
         this.codeTree      = new hTree(this.textBox1.Text);
         this.codeTable     = new hTable(this.codeTree);
         this.textBox2.Text = "";
         foreach (tableNode node in this.codeTable)
         {
             this.textBox2.Text = string.Concat(new object[] { "   '", node.symbol, "'    -    ", node.code, "\r\n", this.textBox2.Text });
         }
     }
     else
     {
         MessageBox.Show("Отсутствует строка для кодирования", "Внимание!!!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         this.textBox2.Text = "";
     }
 }
Exemplo n.º 2
0
 // Methods
 public hTable(hTree tr)
 {
     this.traverseTree(tr[0], "");
 }