Exemplo n.º 1
0
        private void rbtScheduleFreq_CheckedChanged(object sender, EventArgs e)
        {
            if (_currentTask == null)
            {
                return;
            }
            ScheduleFrequency newFreq = ScheduleFrequency.Once;

            if (rbtScheduleOnce.Checked)
            {
                newFreq = ScheduleFrequency.Once;
            }
            else if (rbtScheduleDaily.Checked)
            {
                newFreq = ScheduleFrequency.Daily;
            }
            else if (rbtScheduleWeekly.Checked)
            {
                newFreq = ScheduleFrequency.Weekly;
            }
            else if (rbtScheduleMonthly.Checked)
            {
                newFreq = ScheduleFrequency.Monthly;
            }
            else
            {
                return;
            }

            if (_currentTask.Schedule.Frequency != newFreq)
            {
                _currentTask.Schedule.Frequency = newFreq;
            }
        }
Exemplo n.º 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is ScheduleFrequency)
            {
                ScheduleFrequency scheduleFrequency = (ScheduleFrequency)value;
                if (scheduleFrequency == ScheduleFrequency.Daily)
                {
                    return("Visible");
                }

                return("Collapsed");
            }

            throw new ArgumentException("Value to convert is not a ScheduleFrequency.");
        }
Exemplo n.º 3
0
 public MunicipalityTaxSchedule(string municipality, ScheduleFrequency frequency, DateTime dateTime)
 {
     this.MunicipalityField      = municipality;
     this.ScheduleBeginDateField = dateTime;
     this.ScheduleTypeField      = frequency;
 }
Exemplo n.º 4
0
 protected ScheduleRequest(ScheduleFrequency frequency)
 {
     Frequency = frequency;
 }
Exemplo n.º 5
0
 private ICalendar(ScheduleFrequency Frequency, DateTime Start, DateTime End)
 {
     m_scheduleFrequency = Frequency;
     m_startDateTime     = Start;
     m_endDateTime       = End;
 }
 public MunicipalityTaxSchedule(string municipality, ScheduleFrequency frequency, DateTime begin)
 {
     this.Municipality      = municipality;
     this.ScheduleType      = frequency;
     this.ScheduleBeginDate = begin;
 }