Ejemplo n.º 1
0
 /// <summary>
 /// Verifies and parses the textBox text and writes to dialogue.
 /// The text image is updated at the end of the operation.
 /// </summary>
 private void UpdateDialogueText()
 {
     if (parser.VerifyText(textBox.Text, ByteView))
     {
         dialogue.SetText(textBox.Text, ByteView, dteStr);
         SetTextImage();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the text of an index in the DTE to the text of a textBox
 /// in the compression table panel.
 /// </summary>
 /// <param name="textBox">The textBox containing the text to write.
 /// The index in the DTE is retrieved from the textBox's tag.</param>
 private void UpdateDTEText(TextBox textBox)
 {
     if (parser.VerifyText(textBox.Text, byteView))
     {
         int index = (int)textBox.Tag;
         dte[index].SetText(textBox.Text, byteView);
     }
     SetFreeBytesLabel();
 }