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); }
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); }