Esempio n. 1
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            string msg = GroupTextBox.Text;

            GroupRichTextBox.AppendText(msg + '\n');
            GroupTextBox.Clear();
        }
Esempio n. 2
0
        private void GroupTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            string msg = GroupTextBox.Text;

            if (e.Key.Equals(Keys.Enter))//如果输入的是回车键
            {
                GroupRichTextBox.AppendText(msg + '\n');
                GroupTextBox.Clear();
            }
        }
 private void ClearForm()
 {
     firstNameTextBox.Clear();
     secondNameTextBox.Clear();
     lastNameTextBox.Clear();
     SpecialtyTextBox.Clear();
     FacultyTextBox.Clear();
     FNumTextBox.Clear();
     CourseTextBox.Clear();
     StreamTextBox.Clear();
     GroupTextBox.Clear();
 }
 private void DisplayNameTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (App.IsTrial)
         {
             DatePicker.Focus();
         }
         else
         {
             GroupTextBox.Focus();
         }
     }
 }
        private void BarcodeTextBox_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.Enter: {
                if (BarcodeTextBox.Text.Trim().Length == 0)
                {
                    BarcodeTextBox.Text = "Undefined";
                }
                GroupTextBox.Focus();
            } break;

            default: break;
            }//switch
        }