Exemplo n.º 1
0
        public override string ConvertInfoText(object param = null)
        {
            var mode = param is Int32 ? (Int32)param : Settings.Instance.ReserveToolTipMode;

            if (mode == 1)
            {
                return(base.ConvertInfoText());
            }

            if (ReserveInfo == null)
            {
                return("");
            }
            //
            string view = CommonManager.ConvertTimeText(ReserveInfo.StartTime, ReserveInfo.DurationSecond, false, false, false) + "\r\n";

            view += ServiceName + "(" + NetworkName + ")" + "\r\n";
            view += EventName + "\r\n\r\n";

            view += ConvertRecSettingText() + "\r\n";
            view += "使用予定チューナー : " + ReserveTuner + "\r\n";
            view += "予想サイズ : " + EstimatedRecSize + "\r\n";
            view += "予約状況 : " + Comment + "\r\n";
            List <string> errs = ErrComment;

            view += "エラー状況 : " + (errs.Count == 0 ? "なし" : string.Join(" ", errs.Select(s => "*" + s))) + "\r\n\r\n";

            view += CommonManager.Convert64PGKeyString(ReserveInfo.Create64PgKey()) + "\r\n\r\n";

            view += "予約ID : " + string.Format("{0} (0x{0:X})", DisplayID);
            return(view);
        }
Exemplo n.º 2
0
        public override String ConvertInfoText(object param = null)
        {
            var mode = param is Int32 ? (Int32)param : Settings.Instance.ReserveToolTipMode;

            if (mode == 1)
            {
                return(base.ConvertInfoText());
            }

            if (ReserveInfo == null)
            {
                return("");
            }
            //
            String view = CommonManager.ConvertTimeText(ReserveInfo.StartTime, ReserveInfo.DurationSecond, false, false, false) + "\r\n";

            view += ServiceName + "(" + NetworkName + ")" + "\r\n";
            view += EventName + "\r\n\r\n";

            view += ConvertRecSettingText() + "\r\n";
            view += "予約状況 : " + Comment + "\r\n\r\n";

            view += CommonManager.Convert64PGKeyString(ReserveInfo.Create64PgKey());

            return(view);
        }
Exemplo n.º 3
0
        public ReserveItemLive(ReserveData item) : base(item)
        {
            if (ReserveInfo == null)
            {
                return;
            }

            if (Settings.Instance.InfoWindowBasedOnBroadcast)
            {
                OnAirOrRecStart = TickToSecond(ReserveInfo.StartTime.Ticks);
                OnAirOrRecEnd   = TickToSecond(ReserveInfo.StartTime.AddSeconds(ReserveInfo.DurationSecond).Ticks);
            }
            else
            {
                OnAirOrRecStart = TickToSecond(ReserveInfo.StartTimeWithMargin(0).Ticks);
                OnAirOrRecEnd   = TickToSecond(ReserveInfo.EndTimeWithMargin().Ticks);
            }
        }