public void DisplayEditableItem(UBureau.Classes.UserInfo ui) { LoginEd.Text = ui.Login; PassEd.Text = ui.Password; RetPassEd.Text = ui.Password; //IsAdminCB.Checked = ui.IsAdmin; }
public void DisplayEditableItem(UBureau.Classes.UserInfo ui) { LoginEd.Text = ui.Login; PassEd.Text = ui.Password; RetPassEd.Text = ui.Password; //IsAdminCB.Checked = ui.IsAdmin; foreach (var item in RoleChooserCB.Items) { if ((item as UBureau.Classes.RolesCBItem).Role == ui.Role) break; if (RoleChooserCB.SelectedIndex + 1 < RoleChooserCB.Items.Count) RoleChooserCB.SelectedIndex++; } }