Example #1
0
        public override void UpdateProviderFromPropertyValues()
        {
            //prop["SimpleDisplay"] = "(weekly time ranges)";

            string sun = prop["Sun"];
            string mon = prop["Mon"];
            string tue = prop["Tue"];
            string wed = prop["Wed"];
            string thu = prop["Thu"];
            string fri = prop["Fri"];
            string sat = prop["Sat"];

            WeeklyTimeRange wtr = new WeeklyTimeRange();

            wtr.AddTimeRange(zDayOfWeek.Sun, TimeRange.FromString(sun));
            wtr.AddTimeRange(zDayOfWeek.Mon, TimeRange.FromString(mon));
            wtr.AddTimeRange(zDayOfWeek.Tue, TimeRange.FromString(tue));
            wtr.AddTimeRange(zDayOfWeek.Wed, TimeRange.FromString(wed));
            wtr.AddTimeRange(zDayOfWeek.Thu, TimeRange.FromString(thu));
            wtr.AddTimeRange(zDayOfWeek.Fri, TimeRange.FromString(fri));
            wtr.AddTimeRange(zDayOfWeek.Sat, TimeRange.FromString(sat));


            currentValue = wtr;
            FireValueUpdateEvent();
        }