예제 #1
0
        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();
        }
예제 #2
0
        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) { }
        }