示例#1
0
 public void initGrid()
 {
     StaffTypeGrid.AutoGenerateColumns = false;
     StaffTypeGrid.DataSource          = staffTypeRepository.GetStaffTypes(ClinicId);
     if (StaffTypeGrid.Rows.Count > 0)
     {
         StaffTypeGrid.CurrentCell = StaffTypeGrid[0, 0];
     }
 }
示例#2
0
        public void initTypeCombo()
        {
            List <StaffType> list = staffTypeRepository.GetStaffTypes(ClinicId);

            if (list != null)
            {
                TypeCombo.DataSource    = list;
                TypeCombo.DisplayMember = "Name";
                TypeCombo.ValueMember   = "Id";
            }
        }