Ejemplo n.º 1
0
 private void textBoxID_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Return)
     {
         textBoxID.Text = textBoxID.Text.Trim();
         FindGood findGoodWindow = new FindGood();
         findGoodWindow.Owner = this;
         findGoodWindow.GetGoodById(textBoxID.Text);
         findGoodWindow.Show();
         findGoodWindow.button1.Focus();
     }
 }