private void inputButton_Click(object sender, EventArgs e) { Rom.Language language = Rom.Language.Japanese; if (ushort.TryParse(inputTextBox.Text, System.Globalization.NumberStyles.HexNumber, System.Globalization.CultureInfo.InvariantCulture, out ushort id) && g != null) { outRichTextBox.Clear(); outRichTextBox.AppendText(g.GetMessageOffset(id, language)); outRichTextBox.AppendText(Environment.NewLine); outRichTextBox.AppendText(g.GetMessage(id, language)); outRichTextBox.AppendText(Environment.NewLine); } }