Exemplo n.º 1
0
 private void Form4_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (base.DialogResult == DialogResult.OK)
     {
         this.the_iRegionID     = int.Parse(this.regionIdTextBox.Text);
         this.the_strRegionName = StringEx.CutBlanks(this.regionNameTextBox.Text);
         this.the_strNote       = StringEx.CutBlanks(this.noteTextBox.Text);
     }
 }
Exemplo n.º 2
0
 private void Form12_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (base.DialogResult == DialogResult.OK)
     {
         this.the_iDepartmentID     = int.Parse(this.departmentIdTextBox.Text);
         this.the_strDepartmentName = this.departmentNameTextBox.Text;
         this.the_strNote           = StringEx.CutBlanks(this.noteTextBox.Text);
     }
 }
Exemplo n.º 3
0
 private void FrmRoom_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (base.DialogResult == DialogResult.OK)
     {
         this._the_iRegionID     = int.Parse(this.regionIdTextBox.Text);
         this._the_strRegionName = this.regionNameTextBox.Text;
         this._the_iRoomID       = int.Parse(this.roomIdTextBox.Text);
         this._the_strRoomName   = StringEx.CutBlanks(this.roomNameTextBox.Text);
         this._the_strNote       = StringEx.CutBlanks(this.noteTextBox.Text);
         this._the_iLabor        = (int)this.txtLabor.Value;
     }
 }
Exemplo n.º 4
0
 private void Form8_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (base.DialogResult == DialogResult.OK)
     {
         this.the_iHospitalID     = int.Parse(this.hospitalIdTextBox.Text);
         this.the_strHospitalName = StringEx.CutBlanks(this.hospitalNameTextBox.Text);
         this.the_strAddress      = StringEx.CutBlanks(this.addressTextBox.Text);
         this.the_strWebsite      = StringEx.CutBlanks(this.websiteTextBox.Text);
         this.the_strEmail        = StringEx.CutBlanks(this.emailTextBox.Text);
         this.the_strPhone        = StringEx.CutBlanks(this.phoneTextBox.Text);
         this.the_strFax          = StringEx.CutBlanks(this.faxTextBox.Text);
         this.the_strNote         = StringEx.CutBlanks(this.noteTextBox.Text);
     }
 }
Exemplo n.º 5
0
 private void Form7_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (base.DialogResult == DialogResult.OK)
     {
         this.the_iRegionID       = int.Parse(this.regionIdTextBox.Text);
         this.the_strRegionName   = this.regionNameTextBox.Text;
         this.the_iTypeID         = int.Parse(this.typeIdTextBox.Text);
         this.the_strTypeName     = (this.bModify ? this.typeNameTextBox.Text : this.typeNameComboBox.Text);
         this.the_iLocationID     = int.Parse(this.locationIdTextBox.Text);
         this.the_strLocationName = StringEx.CutBlanks(this.locationNameTextBox.Text);
         this.the_strNote         = StringEx.CutBlanks(this.noteTextBox.Text);
         this.the_bInstall        = this.yesRadioButton.Checked;
     }
 }
Exemplo n.º 6
0
 private void Form6_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.DialogResult != DialogResult.OK)
     {
         return;
     }
     this.the_iRegionID     = Int32.Parse(this.regionIdTextBox.Text);
     this.the_strRegionName = this.regionNameTextBox.Text;
     this.the_iRoomID       = Int32.Parse(this.roomIdTextBox.Text);
     this.the_strRoomName   = this.roomNameTextBox.Text;
     this.the_iBedID        = Int32.Parse(this.bedIdTextBox.Text);
     this.the_strBedName    = StringEx.CutBlanks(this.bedNameTextBox.Text);
     this.the_strNote       = StringEx.CutBlanks(this.noteTextBox.Text);
     this.the_bInstall      = this.yesRadioButton.Checked;
 }
Exemplo n.º 7
0
 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);
     }
 }
Exemplo n.º 8
0
        private void roomNameTextBox_Validated(object sender, EventArgs e)
        {
            TextBox textBox = (TextBox)sender;

            textBox.Text = StringEx.CutBlanks(textBox.Text);
        }
Exemplo n.º 9
0
        private void noteTextBox_Validated(object sender, EventArgs e)
        {
            TextBox tb = (TextBox)sender;

            tb.Text = StringEx.CutBlanks(tb.Text);
        }