Exemplo n.º 1
0
        protected void RenderEventAreaVisual(int idx, CalendarViewBase view, CalendarVisualContainer eventArea)
        {
            bool flag = true;

            for (int i = 0; i < eventArea.Count; i++)
            {
                EventAreaVisual eventAreaVisual = (EventAreaVisual)eventArea[i];
                if (!view.IsItemRemoved(eventAreaVisual.DataIndex))
                {
                    if (!flag)
                    {
                        this.output.Write(",");
                    }
                    flag = false;
                    int num = 0;
                    if (eventAreaVisual.LeftBreak)
                    {
                        num |= 1;
                    }
                    if (eventAreaVisual.RightBreak)
                    {
                        num |= 2;
                    }
                    this.output.Write("new VisData(");
                    this.Output.Write(idx);
                    this.Output.Write(",");
                    int num2 = (this.itemIndex != null) ? ((int)this.itemIndex[eventAreaVisual.DataIndex]) : eventAreaVisual.DataIndex;
                    this.output.Write(num2);
                    this.output.Write(",");
                    this.output.Write((int)eventAreaVisual.Rect.X);
                    this.output.Write(",");
                    this.output.Write((int)eventAreaVisual.Rect.Y);
                    this.output.Write(",");
                    this.output.Write((int)eventAreaVisual.Rect.Width);
                    this.output.Write(",");
                    this.output.Write("0");
                    this.output.Write(",");
                    this.output.Write(num);
                    this.output.Write(",");
                    this.output.Write(eventAreaVisual.InnerBreaks);
                    this.output.Write(",");
                    if (num2 == this.selectedItemIndex)
                    {
                        this.output.Write("1");
                    }
                    else
                    {
                        this.output.Write("0");
                    }
                    this.output.Write(",-1");
                    this.output.Write(")");
                }
            }
        }
 public MonthlyViewVisualMapper(CalendarViewBase parentView, IComparer <CalendarVisual> comparer, CalendarVisualContainer container) : base(parentView, comparer, container)
 {
 }