private void textTextBox_TextChanged(object sender, EventArgs e) { if (!textTextBox.Focused) { return; } var comp = GtID.Compress(textTextBox.Text); gtIdTextBox.Text = comp == 0 ? string.Empty : comp.ToString(); }
private void gtIdTextBox_TextChanged(object sender, EventArgs e) { if (!gtIdTextBox.Focused) { return; } textTextBox.Clear(); try { ulong ulConv = Convert.ToUInt64(gtIdTextBox.Text, convBase); textTextBox.Text = GtID.ConvertToString(ulConv); } catch (Exception) { } }