Example #1
0
 private void LoadCombo()
 {
     comboType.DataSource    = ClassUser.GetAllUsersType();
     comboType.DisplayMember = "name";
     comboType.ValueMember   = "id";
     comboType.SelectedIndex = -1;
     comboType.Text          = "اختر نوع المستخدم";
 }