private void cfg_user_Click(object sender, EventArgs e)
 {
     using (ConfigOffset off = new ConfigOffset())
     {
         this.Enabled = false;
         off.Offset = OffsetUser;
         off.Word = WordUser;
         if (off.ShowDialog() == DialogResult.OK)
         {
             OffsetUser = off.Offset;
             WordUser = off.Word;
             tb_user.MaxLength = WordUser * 4;
             //UpdateUI
             cfg_user.Text = string.Format("Offset={0}, Word={1}", OffsetUser, WordUser);
         }
         this.Enabled = true;
     }
 }
 private void cfg_tid_Click(object sender, EventArgs e)
 {
     using (ConfigOffset off = new ConfigOffset())
     {
         this.Enabled = false;
         off.Offset = OffsetTid;
         off.Word = WordTid;
         if (off.ShowDialog() == DialogResult.OK)
         {
             OffsetTid = off.Offset;
             WordTid = off.Word;
             //UpdateUI
             cfg_tid.Text = string.Format("Offset={0}, Word={1}", OffsetTid, WordTid);
         }
         this.Enabled = true;
     }
 }