Example #1
0
        private EpgViewPeriod MoveTimeTarget(int mode)
        {
            EpgViewPeriod pr = timeJumpView.GetDate();

            if (pr.Equals(prdef.DefPeriod))
            {
                pr.Days = prdef.InitMoveDays;
            }
            pr.Start += TimeSpan.FromDays(mode * (int)pr.Days);
            return(pr);
        }
Example #2
0
        private void RefreshPeriod()
        {
            prdef = new EpgViewPeriodDef(Settings.Instance.EpgSettingList[0]);
            timeJumpView.RefreshPeriod();
            EpgViewPeriod pr = timeJumpView.GetDate();

            if (pr.Equals(prdef.DefPeriod) == false)
            {
                pr.Days = prdef.InitMoveDays;
            }
            timeJumpView.SetDate(pr);
        }