Пример #1
0
    public void SetIndex(int _iIndex)
    {
        for (int i = 0; i < m_csButtonList.Length; i++)
        {
            FooterButton script = m_csButtonList [i].gameObject.GetComponent <FooterButton> ();

            bool bSet = false;
            if (_iIndex == i)
            {
                bSet = true;
            }
            script.SetImage(bSet);
        }
    }
Пример #2
0
    public override void Initialize()
    {
        if (m_bSubStarted == false)
        {
            subStart();
            m_bSubStarted = true;
        }
        m_TabButtonManager.ButtonInit();
        m_btnList  = m_TabButtonManager.GetButtonBase(0).gameObject.GetComponent <FooterButton> ();
        m_btnStore = m_TabButtonManager.GetButtonBase(1).gameObject.GetComponent <FooterButton> ();

        m_TabButtonManager.TriggerClearAll();
        m_iTabIndex = m_TabButtonManager.Index;
        tab_switch(m_iTabIndex);

        m_eStep    = STEP.IDLE;
        m_eStepPre = STEP.MAX;
    }
Пример #3
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewDidAppear(animated);

            if (thisActivity != null)
            {
                ActivityName.Text        = thisActivity.Name;
                ActivityDescription.Text = thisActivity.Description;
                if (!string.IsNullOrWhiteSpace(thisActivity.ImageUrl))
                {
                    if (thisActivity.ImageUrl.StartsWith("upload"))
                    {
                        ImageService.Instance.LoadUrl(
                            ServerUtils.GetUploadUrl(thisActivity.ImageUrl))
                        .Into(ActivityImage);
                    }
                    else
                    {
                        ImageService.Instance.LoadFile(
                            AppUtils.GetPathForLocalFile(thisActivity.ImageUrl))
                        .Into(ActivityImage);
                    }
                }
                else
                {
                    ImageService.Instance.LoadCompiledResource("AppLogo").Into(ActivityImage);
                }
            }

            if (thisActivity == null ||
                thisActivity.LearningTasks == null ||
                thisActivity.LearningTasks.ToList().Count == 0)
            {
                canFinish = false;
                FooterButton.SetTitle("Add tasks by tapping +!", UIControlState.Normal);
            }
            else
            {
                canFinish = true;
                FooterButton.SetTitle("Finish", UIControlState.Normal);
                TableView.Source = new CreateViewSource(thisActivity.LearningTasks.ToList(), EditTask, ManageChildren, true);
            }
        }
Пример #4
0
        protected override void CreateButtons(IList <ButtonColumn <TModel, TPostModel> > columns)
        {
            var button = new FooterButton <TModel, TPostModel>(ScheduleRoute.ModifyJob, o => o.Id, o => o.Id, Resource.OkLable);

            columns.Add(new ButtonColumn <TModel, TPostModel>(button));
        }