Esempio n. 1
0
        internal AxisElement(GanttView view, XPathNavigator node)
            : base(view, node)
        {
            _scale    = (ScaleLevel)Enum.Parse(typeof(ScaleLevel), Attributes[ScaleName].Value);
            _interval = int.Parse(Attributes[IntervalName].Value, CultureInfo.InvariantCulture);
            _format   = Attributes[FormatName].Value;
            if (_scale == ScaleLevel.Week)
            {
                _firstDay = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), Attributes[FirstDayName].Value);
            }

            if (Attributes.ContainsKey(TitleTypeName))
            {
                string titleTypeValue = Attributes[TitleTypeName].Value;
                if (!string.IsNullOrEmpty(titleTypeValue))
                {
                    _titleType = (TitleType)Enum.Parse(typeof(TitleType), titleTypeValue);
                }
            }

            if (Attributes.ContainsKey(WidthName))
            {
                string widthValue = Attributes[WidthName].Value;
                if (!string.IsNullOrEmpty(widthValue))
                {
                    this.Width = int.Parse(widthValue, NumberStyles.Integer, CultureInfo.InvariantCulture);
                }
            }
        }
Esempio n. 2
0
        internal AxisElement(GanttView view, XPathNavigator node)
            : base(view, node)
        {
            _scale = (ScaleLevel)Enum.Parse(typeof(ScaleLevel), Attributes[ScaleName].Value);
            _interval = int.Parse(Attributes[IntervalName].Value, CultureInfo.InvariantCulture);
            _format = Attributes[FormatName].Value;
            if(_scale == ScaleLevel.Week)
                _firstDay = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), Attributes[FirstDayName].Value);

            if (Attributes.ContainsKey(TitleTypeName))
            {
                string titleTypeValue = Attributes[TitleTypeName].Value;
                if (!string.IsNullOrEmpty(titleTypeValue))
                {
                    _titleType = (TitleType)Enum.Parse(typeof(TitleType), titleTypeValue);
                }
            }

            if (Attributes.ContainsKey(WidthName))
            {
                string widthValue = Attributes[WidthName].Value;
                if (!string.IsNullOrEmpty(widthValue))
                {
                    this.Width = int.Parse(widthValue, NumberStyles.Integer, CultureInfo.InvariantCulture);
                }
            }
        }
Esempio n. 3
0
 internal SpanElement(GanttView view, string id, string type, string tag)
     : base(view, ElementName)
 {
     AddAttribute(IdName, id);
     AddAttribute(TypeName, type);
     AddAttribute(TagName, tag);
 }
Esempio n. 4
0
 internal DataElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     if (Attributes.ContainsKey(StartDateName))
     {
         _startDate = DateTime.Parse(Attributes[StartDateName].Value, CultureInfo.InvariantCulture);
     }
 }
Esempio n. 5
0
        internal DayElement(GanttView view, DateTime date, bool isHoliday)
            : base(view, ElementName)
        {
            _date      = date;
            _isHoliday = isHoliday;

            AddAttribute(DateName, date.ToString(CultureInfo.InvariantCulture));
            AddAttribute(HolidayName, isHoliday.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 6
0
        internal DayElement(GanttView view, DayOfWeek dayOfWeek, bool isHoliday)
            : base(view, ElementName)
        {
            _dayOfWeek = dayOfWeek;
            _isHoliday = isHoliday;

            AddAttribute(DayOfWeekName, dayOfWeek.ToString());
            AddAttribute(HolidayName, isHoliday.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 7
0
 internal DataElement(GanttView view, DateTime?startDate)
     : base(view, ElementName)
 {
     if (startDate != null)
     {
         _startDate = startDate.Value;
         AddAttribute(StartDateName, startDate.Value.ToString(CultureInfo.InvariantCulture));
     }
 }
Esempio n. 8
0
        internal DayElement(GanttView view, DateTime date, bool isHoliday)
            : base(view, ElementName)
        {
            _date = date;
            _isHoliday = isHoliday;

            AddAttribute(DateName, date.ToString(CultureInfo.InvariantCulture));
            AddAttribute(HolidayName, isHoliday.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 9
0
        internal DayElement(GanttView view, DayOfWeek dayOfWeek, bool isHoliday)
            : base(view, ElementName)
        {
            _dayOfWeek = dayOfWeek;
            _isHoliday = isHoliday;

            AddAttribute(DayOfWeekName, dayOfWeek.ToString());
            AddAttribute(HolidayName, isHoliday.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 10
0
 internal DayElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     if (Attributes.ContainsKey(DayOfWeekName))
         _dayOfWeek = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), Attributes[DayOfWeekName].Value);
     if (Attributes.ContainsKey(DateName))
         _date = DateTime.Parse(Attributes[DateName].Value, CultureInfo.InvariantCulture);
     _isHoliday = bool.Parse(Attributes[HolidayName].Value);
 }
Esempio n. 11
0
        internal PointElement(GanttView view, DateTime value, string id, string type, string tag)
            : base(view, ElementName)
        {
            _value = value;

            AddAttribute(IdName, id);
            AddAttribute(TypeName, type);
            AddAttribute(TagName, tag);

            AddAttribute(ValueName, value.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 12
0
        internal PointElement(GanttView view, DateTime value, string id, string type, string tag)
            : base(view, ElementName)
        {
            _value = value;

            AddAttribute(IdName, id);
            AddAttribute(TypeName, type);
            AddAttribute(TagName, tag);

            AddAttribute(ValueName, value.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 13
0
        internal RelationElement(GanttView view, string id, string type, string tag, string originId, string targetId)
            : base(view, ElementName)
        {
            _originId = originId;
            _targetId = targetId;

            AddAttribute(IdName, id);
            AddAttribute(TypeName, type);
            AddAttribute(TagName, tag);
            AddAttribute(OriginIdName, originId);
            AddAttribute(TargetIdName, targetId);
        }
Esempio n. 14
0
        internal RelationElement(GanttView view, string id, string type, string tag, string originId, string targetId)
            : base(view, ElementName)
        {
            _originId = originId;
            _targetId = targetId;

            AddAttribute(IdName, id);
            AddAttribute(TypeName, type);
            AddAttribute(TagName, tag);
            AddAttribute(OriginIdName, originId);
            AddAttribute(TargetIdName, targetId);
        }
Esempio n. 15
0
        internal IntervalElement(GanttView view, DateTime start, DateTime finish, string id, string type, string tag)
            : base(view, ElementName)
        {
            _start = start;
            _finish = finish;

            AddAttribute(IdName, id);
            AddAttribute(TypeName, type);
            AddAttribute(TagName, tag);

            AddAttribute(StartName, start.ToString(CultureInfo.InvariantCulture));
            AddAttribute(FinishName, finish.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 16
0
        internal IntervalElement(GanttView view, DateTime start, DateTime finish, string id, string type, string tag)
            : base(view, ElementName)
        {
            _start  = start;
            _finish = finish;

            AddAttribute(IdName, id);
            AddAttribute(TypeName, type);
            AddAttribute(TagName, tag);

            AddAttribute(StartName, start.ToString(CultureInfo.InvariantCulture));
            AddAttribute(FinishName, finish.ToString(CultureInfo.InvariantCulture));
        }
Esempio n. 17
0
 internal DayElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     if (Attributes.ContainsKey(DayOfWeekName))
     {
         _dayOfWeek = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), Attributes[DayOfWeekName].Value);
     }
     if (Attributes.ContainsKey(DateName))
     {
         _date = DateTime.Parse(Attributes[DateName].Value, CultureInfo.InvariantCulture);
     }
     _isHoliday = bool.Parse(Attributes[HolidayName].Value);
 }
Esempio n. 18
0
        internal AxisElement(GanttView view, ScaleLevel scale, int interval, string format, DayOfWeek? firstDay)
            : base(view, ElementName)
        {
            _scale = scale;
            _interval = interval;
            _format = format;
            if (firstDay != null)
                _firstDay = firstDay.Value;

            AddAttribute(ScaleName, scale.ToString());
            AddAttribute(IntervalName, interval.ToString(CultureInfo.InvariantCulture));
            AddAttribute(FormatName, format);
            if (firstDay != null)
                AddAttribute(FirstDayName, firstDay.Value.ToString());
        }
Esempio n. 19
0
        internal AxisElement(GanttView view, ScaleLevel scale, int interval, string format, DayOfWeek?firstDay)
            : base(view, ElementName)
        {
            _scale    = scale;
            _interval = interval;
            _format   = format;
            if (firstDay != null)
            {
                _firstDay = firstDay.Value;
            }

            AddAttribute(ScaleName, scale.ToString());
            AddAttribute(IntervalName, interval.ToString(CultureInfo.InvariantCulture));
            AddAttribute(FormatName, format);
            if (firstDay != null)
            {
                AddAttribute(FirstDayName, firstDay.Value.ToString());
            }
        }
Esempio n. 20
0
 internal HeadElement(GanttView view)
     : base(view, ElementName)
 {
 }
Esempio n. 21
0
 internal GanttElement(GanttView view, XPathNavigator node)
     : base(node)
 {
     _view = view;
 }
Esempio n. 22
0
 internal GanttElement(GanttView view, string name)
     : base(name)
 {
     _view = view;
 }
Esempio n. 23
0
 internal IntervalElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     _start  = DateTime.Parse(Attributes[StartName].Value, CultureInfo.InvariantCulture);
     _finish = DateTime.Parse(Attributes[FinishName].Value, CultureInfo.InvariantCulture);
 }
Esempio n. 24
0
 internal BodyElement(GanttView view)
     : base(view, ElementName)
 {
 }
Esempio n. 25
0
 internal HeadElement(GanttView view)
     : base(view, ElementName)
 {
 }
Esempio n. 26
0
 internal BodyElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
 }
Esempio n. 27
0
 internal BodyElement(GanttView view)
     : base(view, ElementName)
 {
 }
Esempio n. 28
0
 internal CalendarElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
 }
Esempio n. 29
0
 internal IntervalElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     _start = DateTime.Parse(Attributes[StartName].Value, CultureInfo.InvariantCulture);
     _finish = DateTime.Parse(Attributes[FinishName].Value, CultureInfo.InvariantCulture);
 }
Esempio n. 30
0
 internal CalendarElement(GanttView view)
     : base(view, ElementName)
 {
 }
Esempio n. 31
0
 internal PointElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     _value = DateTime.Parse(Attributes[ValueName].Value, CultureInfo.InvariantCulture);
 }
Esempio n. 32
0
 internal RelationElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     _originId = Attributes[OriginIdName].Value;
     _targetId = Attributes[TargetIdName].Value;
 }
Esempio n. 33
0
 internal RelationElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     _originId = Attributes[OriginIdName].Value;
     _targetId = Attributes[TargetIdName].Value;
 }
Esempio n. 34
0
 internal PointElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
     _value = DateTime.Parse(Attributes[ValueName].Value, CultureInfo.InvariantCulture);
 }
Esempio n. 35
0
 internal SpanElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
 }
Esempio n. 36
0
 internal CalendarElement(GanttView view, XPathNavigator node)
     : base(view, node)
 {
 }
Esempio n. 37
0
 internal GanttElement(GanttView view, XPathNavigator node)
     : base(node)
 {
     _view = view;
 }
Esempio n. 38
0
 internal GanttElement(GanttView view, string name)
     : base(name)
 {
     _view = view;
 }
Esempio n. 39
0
 internal CalendarElement(GanttView view)
     : base(view, ElementName)
 {
 }