コード例 #1
0
        public override void Decorate(TaskItemControl taskItemControl)
        {
            //Add task label
            CreateTaskLabel(taskItemControl, "Difficulty");

            //Add horizontal slider
            CreateHorizontalSlider(taskItemControl, new Point(-3, 40), new Size(320, 50), difficultyValue, OnDifficultyValueChanged, AnchorStyles.Left | AnchorStyles.Right);
        }
コード例 #2
0
        public override void Decorate(TaskItemControl taskItemControl)
        {
            //Add task label
            CreateTaskLabel(taskItemControl, "Deadline");

            //Add date and time labels
            CreateLabel(taskItemControl, "Date", new Point(3, 25));
            CreateLabel(taskItemControl, "Time", new Point(150, 25));

            //Add month and day drop down lists
            CreateDropDownList(taskItemControl, "Month", new Point(3, 45), monthIndex, OnMonthChanged, "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
            CreateDropDownList(taskItemControl, "Day", new Point(3, 70), dayIndex, OnDayChanged, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31");

            //Add hour and minute drop down lists
            CreateDropDownList(taskItemControl, "Hour", new Point(150, 45), hourIndex, OnHourChanged, "12AM", "1AM", "2AM", "3AM", "4AM", "5AM", "6AM", "7AM", "8AM", "9AM", "10AM", "11AM", "12PM", "1PM", "2PM", "3PM", "4PM", "5PM", "6PM", "7PM", "8PM", "9PM", "10PM", "11PM");
            CreateDropDownList(taskItemControl, "Minute", new Point(150, 70), minuteIndex, OnMinuteChanged, "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59");
        }