Example #1
0
        public AddUserDialog(List <AlimexDAL.Entity.Organization> parents, List <User> users, IOrganiztionForm parentForm)
        {
            InitializeComponent();
            this.ThemeName = "TelerikMetro";
            this.ApplyThemeRecursively(this.Controls);
            this.radDropDownList2.ValueMember   = "Id";
            this.radDropDownList2.DisplayMember = "Name";
            this.radDropDownList2.DataSource    = parents;

            List <User> userData = new List <User>();

            foreach (var d in users)
            {
                if (d.Organizations.Count == 0)
                {
                    userData.Add(d);
                }
            }

            if (userData.Count == 0)
            {
                radButton2.Enabled = false;
            }
            this.radDropDownList1.ValueMember   = "Id";
            this.radDropDownList1.DisplayMember = "Name";
            this.radDropDownList1.DataSource    = userData;

            _parentForm = parentForm;
        }
Example #2
0
 public RoleNode(List <AlimexDAL.Entity.Organization> parents, IOrganiztionForm parentForm)
 {
     InitializeComponent();
     // this.ThemeName = "TelerikMetro";
     this.ApplyThemeRecursively(this.Controls);
     this.radDropDownList2.ValueMember   = "Id";
     this.radDropDownList2.DisplayMember = "Name";
     this.radDropDownList2.DataSource    = parents;
     _parentForm = parentForm;
 }