private void txtHex_MouseUp(object sender, MouseEventArgs e) { try { txtSelectedHex.Text = HexToAscii.ConvertToAscii(txtHex.SelectedText, txtStringsToRemove.Text); } catch (Exception objEx) { txtSelectedHex.Text = objEx.Message; } }
private void txtHex_TextChanged(object sender, EventArgs e) { int intAsciiLineCount = 0, intHexLineCount = 0; try { txtAscii.Text = HexToAscii.ConvertToAscii(txtHex.Text, txtStringsToRemove.Text, txtHexDelimiter.Text); } catch (Exception objEx) { txtAscii.Text = objEx.Message; } intAsciiLineCount = txtAscii.Lines.Count() - 1; intHexLineCount = txtHex.Lines.Count() - 1; lblAsciiLineCount.Text = string.Format("Ascii Line Count = {0}", intAsciiLineCount); lblHexLineCount.Text = string.Format("Hex Line Count = {0}", intHexLineCount); }