public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ProjectTimeline pt = (ProjectTimeline)value;

            if ((string)parameter == "full")
            {
                return(PathGeometryHelper.CreateRectangle(pt.RootStartedAt, pt.RootCompletedAt, pt.StartedAt, pt.CompletedAt));
            }

            return(PathGeometryHelper.CreateRectangles(pt.RootStartedAt, pt.RootCompletedAt, pt.RealWork));
        }
Beispiel #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            BuildTimeline bt = (BuildTimeline)value;

            return(PathGeometryHelper.CreateRectangle(bt.ParentStartedAt, bt.ParentCompletedAt, bt.StartedAt, bt.CompletedAt));
        }
Beispiel #3
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(PathGeometryHelper.CreateRectangle(0.0, 1.0, 0.0, (double)value));
 }