Ejemplo n.º 1
0
        private void LoadRole(int roleId)
        {
            var role = presenter.GetRole(roleId);

            if (role != null)
            {
                var experts = presenter.GetRoleExperts(roleId);
                this.iGridEXPersons.DataSource = experts.Select(it => it.Personel).ToList();
                txtRole.Text = role.Title;
            }
        }
Ejemplo n.º 2
0
        private void iGridRoles_SelectionChanged(object sender, EventArgs e)
        {
            ItRolePresenter rolePresenter = new ItRolePresenter();
            var             row           = (SdItRoleDto)this.iGridRoles.CurrentRow.DataRow;

            if (row != null)
            {
                var roleExperts = rolePresenter.GetRoleExperts(row.RoleId);
                roleExpertBList                   = new BindingList <SdItRoleExpertDto>(roleExperts);
                roleExpertBs.DataSource           = roleExpertBList;
                this.igridPersonToRole.DataSource = roleExpertBs;
            }
        }