Ejemplo n.º 1
0
 private void FormScheduleDay_Load(object sender, System.EventArgs e)
 {
     labelDate.Text = SchedCurDate.ToString("dddd") + " " + SchedCurDate.ToShortDateString();
     SchedList      = Schedules.RefreshDayEdit(SchedCurDate);     //only does this on startup
     //listProv
     for (int i = 0; i < ProviderC.ListShort.Count; i++)
     {
         listProv.Items.Add(ProviderC.ListShort[i].Abbr);
         //listProv.SetSelected(i,true);
     }
     for (int i = 0; i < Employees.ListShort.Length; i++)
     {
         listEmp.Items.Add(Employees.ListShort[i].FName);
         //listEmp.SetSelected(i,true);
     }
     FillGrid();
     for (int i = 0; i < ProviderC.ListShort.Count; i++)
     {
         comboProv.Items.Add(ProviderC.ListShort[i].Abbr);
         if (ProviderC.ListShort[i].ProvNum == PrefC.GetLong(PrefName.ScheduleProvUnassigned))
         {
             comboProv.SelectedIndex = i;
         }
     }
 }