コード例 #1
0
        public void setDay(int panelId, string date, bool isToday, bool isTouchable, params Entry[] events)
        {
            WeekDayPanel panel = panels[panelId];

            panel.Date        = date;
            panel.IsToday     = isToday;
            panel.IsTouchable = isTouchable;
            panel.setEvents(events);
        }
コード例 #2
0
ファイル: WeekDayPanel.xaml.cs プロジェクト: zessiez/always
        public void setBorders(WeekDayPanel left, WeekDayPanel top, WeekDayPanel right, WeekDayPanel bottom)
        {
            if (left == null)
            {
                leftBorder.BorderThickness = new Thickness(6, 0, 0, 0);
            }
            else
            {
                this.left = left.rightBorder;
                leftBorder.BorderThickness = new Thickness(3, 0, 0, 0);
            }

            if (top == null)
            {
                topBorder.BorderThickness = new Thickness(0, 6, 0, 0);
            }
            else
            {
                this.top = top.bottomBorder;
                topBorder.BorderThickness = new Thickness(0, 3, 0, 0);
            }

            if (right == null)
            {
                rightBorder.BorderThickness = new Thickness(0, 0, 6, 0);
            }
            else
            {
                this.right = right.leftBorder;
                rightBorder.BorderThickness = new Thickness(0, 0, 3, 0);
            }

            if (bottom == null)
            {
                bottomBorder.BorderThickness = new Thickness(0, 0, 0, 6);
            }
            else
            {
                this.bottom = bottom.topBorder;
                bottomBorder.BorderThickness = new Thickness(0, 0, 0, 3);
            }
        }