예제 #1
0
        private void enrolleeIdNoTextBox_Leave(object sender, EventArgs e)
        {
            if ((enrolleeNoTextBox.Text.Length > 0) && (enrolleeIdNoTextBox.Text.Length > 0))
            {
                string sTempName;
                if (IsDuplicate(out sTempName))
                {
                    errorProvider1.SetError(enrolleeIdNoTextBox,
                                            "This ID No belongs to " + sTempName);
                    //enrolleeIdNoTextBox.Focus();
                    //enrolleeBindingSource.CancelEdit();
                }
                else
                {
                    errorProvider1.SetError(enrolleeIdNoTextBox, "");
                    if (departmentIdComboBox.Items.Count > 0)
                    {
                        departmentIdComboBox.SelectedIndex = 0;
                    }

                    if (positionIdComboBox.Items.Count > 0)
                    {
                        positionIdComboBox.SelectedIndex = 0;
                    }

                    if (settingIdComboBox.Items.Count > 0)
                    {
                        settingIdComboBox.SelectedIndex = 0;
                    }
                }
            }
            UtilityClass.ChangeColor(enrolleeIdNoTextBox, false);
        }
예제 #2
0
 private void middleNameTextBox_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(middleNameTextBox, false);
     if (middleNameTextBox.Text.Length > 0)
     {
         errorProvider1.SetError(middleNameTextBox, "");
     }
     else
     {
         errorProvider1.SetError(middleNameTextBox, "Fill Middle Name");
         middleNameTextBox.Focus();
     }
 }
예제 #3
0
 private void settingIdComboBox_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(settingIdComboBox, false);
 }
예제 #4
0
 private void settingIdComboBox_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(settingIdComboBox, true);
 }
예제 #5
0
 private void positionIdComboBox_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(positionIdComboBox, true);
 }
예제 #6
0
 private void positionIdComboBox_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(positionIdComboBox, false);
 }
예제 #7
0
 private void departmentIdComboBox_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(departmentIdComboBox, false);
 }
예제 #8
0
 private void departmentIdComboBox_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(departmentIdComboBox, true);
 }
예제 #9
0
 private void addressTextBox_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(addressTextBox, false);
 }
예제 #10
0
 private void addressTextBox_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(addressTextBox, true);
 }
예제 #11
0
 private void middleNameTextBox_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(middleNameTextBox, true);
 }
예제 #12
0
 private void enrolleeNoTextBox_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(enrolleeNoTextBox, true);
 }
예제 #13
0
 private void textBoxPassword_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(textBoxPassword, false);
 }
예제 #14
0
 private void textBoxPassword_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(textBoxPassword, true);
 }
예제 #15
0
 private void textBoxUserName_Leave(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(textBoxUserName, false);
 }
예제 #16
0
 private void textBoxUserName_Enter(object sender, EventArgs e)
 {
     UtilityClass.ChangeColor(textBoxUserName, true);
 }