Esempio n. 1
0
 public List <TimespamView> Get_ArrayOfTimes(DateTime date, Boolean chekWith)
 {
     if (chekWith)
     {
         if (!Date_IsContained(date))
         {
             return(null);
         }
     }
     return(ResourceSchedulingBE.Get_ArrayOfTimes(date, this.TimeStart, this.TimeEnd, (double)this.Duration, this.Nombre));
 }
Esempio n. 2
0
        void UpdateCombo(double duration)
        {
            var x = ResourceSchedulingBE.Get_ArrayOfTimes(DateTime.Now, TimeSpan.Parse("00:00"), TimeSpan.Parse("24:0:0"), (double)duration, "Turno tarde");

            timespamViewBindingSource.DataSource = x;
            bindingSource1.DataSource            = x;
            cmbTimeStart.Refresh();

            cmbTimeEnd.Refresh();

            int index = cmbTimeStart.Properties.GetDataSourceRowIndex("TimeString", "09:00");

            cmbTimeStart.ItemIndex = index;
            index = cmbTimeEnd.Properties.GetDataSourceRowIndex("TimeString", "18:00");
            cmbTimeEnd.ItemIndex = index;
        }
Esempio n. 3
0
 public List <TimespamView> Get_ArrayOfTimes(DateTime date)
 {
     return(ResourceSchedulingBE.Get_ArrayOfTimes(date, this.TimeStart, this.TimeEnd, (double)this.Duration, this.Nombre));
 }