10066 : I need is to be able to display various periods of calendar with several shifts (time periods) in a day..

…                int x1=gantt1.DateScaler.TimeToPixel(i.Subtract(i.TimeOfDay));         int x2=gantt1.DateScaler.TimeToPixel(ii.Subtract(ii.TimeOfDay));                 if (i.DayOfWeek==DayOfWeek.Sunday )           G.FillRectangle(b_sunday,x1,0,x2-x1,aHeight);         else         if (i.DayOfWeek==DayOfWeek.Wednesday)           G.FillRectangle(b_wednesday,x1,0,x2-x1,aHeight);                i=ii;       }     }    … Continue reading

10065 : Is it possible to make in the same TimeItem 2 different colors or shapes?

…BreakInfo breakInfo=e.TimeItem.UserReference as BreakInfo;                                              DateTime breakStart=e.TimeItem.Start.AddDays(breakInfo.startsDaysFromStart)+e.Diff;         DateTime breakStop=breakStart.AddDays(breakInfo.breakLengthInDays);                   int breakStartPixel=gantt1.DateScaler.TimeToPixel(breakStart);         int breakStopPixel=gantt1.DateScaler.TimeToPixel(breakStop);                         e.G.FillRectangle(new SolidBrush(Color.Blue),new Rectangle(e.Rect.Left,e.Rect.Top,breakStartPixel-e.Rect.Left,e.Rect.Height));… Continue reading