コード例 #1
0
ファイル: Form9.cs プロジェクト: nguyenhoanghai/NurseCall
 private void Form9_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (base.DialogResult == DialogResult.OK)
     {
         this.the_iEmployeeID       = int.Parse(this.employeeIdTextBox.Text);
         this.the_strFirstName      = StringEx.CutBlanksUpper(this.firstNameTextBox.Text);
         this.the_strLastName       = StringEx.CutBlanksUpper(this.lastNameTextBox.Text);
         this.the_bMenOrWomen       = this.menRadioButton.Checked;
         this.the_dtBirthDate       = this.birthDateDateTimePicker.Value;
         this.the_strTitle          = StringEx.CutBlanks(this.titleTextBox.Text);
         this.the_iDepartmentID     = int.Parse(this.departmentIdTextBox.Text);
         this.the_strDepartmentName = this.departmentNameComboBox.Text;
         this.the_iJobID            = int.Parse(this.jobIdTextBox.Text);
         this.the_strJobName        = this.jobNameComboBox.Text;
         this.the_dtHireDate        = this.hireDateDateTimePicker.Value;
         this.the_strAddress        = StringEx.CutBlanks(this.addressTextBox.Text);
         this.the_strCity           = StringEx.CutBlanks(this.cityTextBox.Text);
         this.the_strPhone          = StringEx.CutBlanks(this.phoneTextBox.Text);
         this.the_strNote           = StringEx.CutBlanks(this.noteTextBox.Text);
     }
 }
コード例 #2
0
ファイル: Form9.cs プロジェクト: nguyenhoanghai/NurseCall
        private void lastNameTextBox_Validated(object sender, EventArgs e)
        {
            TextBox textBox = (TextBox)sender;

            textBox.Text = StringEx.CutBlanksUpper(textBox.Text);
        }