예제 #1
0
        // При загрузки формы
        private void Posts_employeesFormEdit_Load(object sender, EventArgs e)
        {
            SelectEmployeeComboBox();

            SelectPostsComboBox();

            int indexEmp  = ComboBox_fk_employee.FindString(Values.PostsEmployeesEmployees);
            int indexPost = ComboBox_fk_post.FindString(Values.PostsEmployeesPost);

            ComboBox_fk_employee.SelectedIndex = indexEmp;
            ComboBox_fk_post.SelectedIndex     = indexPost;
        }
예제 #2
0
        private void UsersFormEdit_Load(object sender, EventArgs e)
        {
            SelectEmployeeComboBox();

            SelectRoleComboBox();

            TextBoxLog.Text        = Values.UserLogin;
            TextBoxPass.Text       = Values.UserPassword;
            TextBoxPassRepeat.Text = Values.UserPassword;

            int indexEmp  = ComboBox_fk_employee.FindString(Values.UserEmployee);
            int indexPost = ComboBox_fk_role_user.FindString(Values.UserRole);

            ComboBox_fk_employee.SelectedIndex  = indexEmp;
            ComboBox_fk_role_user.SelectedIndex = indexPost;
        }