示例#1
0
    // レコードの移動
    private bool moveRecord(long present_id)
    {
        var contex = Records0.Find(p => p.FixId == present_id);

        if (contex == null)
        {
            return(false);
        }

        contex.IconColor     = IconColor[1]; // 色変更
        contex.FrameColor    = FrameColor[1];
        contex.CaptionText02 = "";           // 残り時間非表示
        contex.Category      = (int)Category.PresentLog;

        Records1.Insert(0, contex);
        if (Records1.Count > 30)
        {
            Records1.RemoveAt(Records1.Count - 1);
        }
        Records0.Remove(contex);
        return(true);
    }
示例#2
0
    public void PostSceneStart()
    {
        AndroidBackKeyManager.Instance.StackPush(gameObject, OnClickedBackButton);
        // ナビゲーションバー
        ScheduleTab1 = GameTextUtil.GetText("schedule_tab1");
        ScheduleTab2 = GameTextUtil.GetText("schedule_tab2");

        EmptyLabel = GameTextUtil.GetText("common_not_list");

        IsViewContents = true;

        //---------------------------------------------
        // 開催中レコード
        //---------------------------------------------
        Records0.Clear();
        List <EventScheduleInfo> activeEventInfoList = GetEvetntItemList(Category.Active);

        activeEventInfoList.Sort(SortExec);
        foreach (EventScheduleInfo item in activeEventInfoList)
        {
            AddRecord(Category.Active, item);
        }
        RecordCount0 = Records0.Count;

        //---------------------------------------------
        // 開催予定レコード
        //---------------------------------------------
        Records1.Clear();
        List <EventScheduleInfo> furtureEventInfoList = GetEvetntItemList(Category.Furture);

        furtureEventInfoList.Sort(SortExec);
        foreach (EventScheduleInfo item in furtureEventInfoList)
        {
            AddRecord(Category.Furture, item);
        }
        RecordCount1 = Records1.Count;

        //---------------------------------------------
        // データがある場合は詳細ダイアログを表示する
        //---------------------------------------------
        if (MainMenuParam.m_DialogEventScheduleData != null)
        {
            EventRecordListItemContex record = Records0.Find((v) => v.FixId == MainMenuParam.m_DialogEventScheduleData.fix_id);
            if (record != null)
            {
                EventScheduleDialog eventDialog = CreateDetailView(record);
                eventDialog.IsViewJumpButton = false;
            }
            else
            {
#if BUILD_TYPE_DEBUG
                string messageText = "イベントがありませんでした。\nMasterDataEvent::fix_id:" + MainMenuParam.m_DialogEventScheduleData.fix_id;
                Dialog dloalog     = DialogManager.Open1B_Direct("デバッグ ダイアログ", messageText, "common_button7", true, true)
                                     .SetOkEvent(() =>
                {
                });
#endif
            }
            MainMenuParam.m_DialogEventScheduleData = null;
        }
    }