Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var ar = ScheduleArray.Parse(tbxHour.Text, 0, 23);

            ar = ScheduleArrayForm.Run(2, 12, 24, null, 0, false, ar);
            if (ar != null)
            {
                tbxHour.Text = ar.ToString();
            }
        }
Esempio n. 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            var ar = ScheduleArray.Parse(tbxDayOfMonth.Text, 1, 31);

            ar = ScheduleArrayForm.Run(4, 10, 31, null, 1, false, ar);
            if (ar != null)
            {
                tbxDayOfMonth.Text = ar.ToString();
            }
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var ar = ScheduleArray.Parse(tbxMinute.Text, 0, 59);

            ar = ScheduleArrayForm.Run(6, 10, 60, null, 0, true, ar);
            if (ar != null)
            {
                tbxMinute.Text = ar.ToString();
            }
        }
Esempio n. 4
0
        private void button4_Click(object sender, EventArgs e)
        {
            var ar       = ScheduleArray.Parse(tbxDayOfWeek.Text, 0, 6);
            var WEEKDAYS = new string[] { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };

            ar = ScheduleArrayForm.Run(1, 7, 7, WEEKDAYS, 0, false, ar);
            if (ar != null)
            {
                tbxDayOfWeek.Text = ar.ToString();
            }
        }
Esempio n. 5
0
        private void button5_Click(object sender, EventArgs e)
        {
            var ar     = ScheduleArray.Parse(tbxMonth.Text, 1, 12);
            var MONTHS = new string[] { "Jab", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Now", "Dec" };

            ar = ScheduleArrayForm.Run(2, 6, 12, MONTHS, 1, false, ar);
            if (ar != null)
            {
                tbxMonth.Text = ar.ToString();
            }
        }