Ejemplo n.º 1
0
 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;
             //UpdateUI
             cfg_user.Text = string.Format("Offset={0}, Word={1}", OffsetUser, WordUser);
         }
         this.Enabled = true;
     }
 }
 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;
             //UpdateUI
             cfg_user.Text = string.Format("Offset={0}, Word={1}", OffsetUser, WordUser);
         }
         this.Enabled = true;
     }
 }