예제 #1
0
 public override void Bindingeventstobtn()
 {
     returnbtn.onClick.AddListener(() =>
     {
         Uistack.Getinstance().Return();
     });
 }
예제 #2
0
        public override void Bindingeventstobtn()
        {
            close.onClick.AddListener(() =>
            {
                FindObjectOfType <Imagetargettracker>().targetdata.Releaseinstantiatedtarget();
                if (Uistack.Getinstance().Getcurdepth() > 2)
                {
                    Cloudrecoeventhandler.Getinstance().Stopscanning();
                    // Uimanager.Getinstance().Addblackfade(true,null);
                    Uistack.Getinstance().Return(2);
                    FindObjectOfType <Detaildescriptionview>().detailsetup.enabled = true;
                }
                else
                {
                    Cloudrecoeventhandler.Getinstance().Restartscanning();
                    Updateviewstatus(Viewstatus.SHOW);
                }
            });



            back.onClick.AddListener(() =>
            {
                Cloudrecoeventhandler.Getinstance().Stopscanning();
                Uistack.Getinstance().Return(2);
            });

            dropdown.onClick.AddListener(() => Onclickdropdown());
            dropup.onClick.AddListener(() => Onclickdropup());

            Takephotoorrecord.Getinstance().Recording.onrecorded = Onrecorded;
            Takephotoorrecord.Getinstance().Recording.onrecording = Updaterecordingprogress;
        }
예제 #3
0
 public override void Bindingeventstobtn()
 {
     back.onClick.AddListener(() =>
     {
         Uistack.Getinstance().Return(2);
     });
     cleancach.onClick.AddListener(() =>
     {
         Caching.CleanCache();
         Calculaterspaceoccupied();
     });
     aboutbtn.onClick.AddListener(() =>
     {
         Baseview show = Uimanager.Getinstance().Getviewfromviewid(typeof(Aboutview).Name);
         Uistack.Getinstance().Openview(show, Viewstatus.SHOW);
     });
     histroy.onClick.AddListener(() =>
     {
         Baseview show = Uimanager.Getinstance().Getviewfromviewid(typeof(Histroyview).Name);
         Uistack.Getinstance().Openview(show, Viewstatus.SHOW);
     });
     favorite.onClick.AddListener(() =>
     {
         Baseview show = Uimanager.Getinstance().Getviewfromviewid(typeof(Favoriteview).Name);
         Uistack.Getinstance().Openview(show, Viewstatus.SHOW);
     });
 }
예제 #4
0
 public override void Bindingeventstobtn()
 {
     back.onClick.AddListener(() =>
     {
         Uistack.Getinstance().Return();
     });
     callback = Creathistroyitem;
 }
예제 #5
0
 public override void Bindingeventstobtn()
 {
     //show case view 返回至首页
     returnbtn.onClick.AddListener(() =>
     {
         Uistack.Getinstance().Return(2);
         getdatas = Getdatas.GETTING;
     });
 }
예제 #6
0
        public override void Bindingeventstobtn()
        {
            //   Baseview hide = Uimanager.Getinstance().Getviewfromviewid(typeof(Showcaseview).Name);

            returnbtn.onClick.AddListener(() =>
            {
                Uistack.Getinstance().Return();
            });
        }
예제 #7
0
        private void Viewop()
        {
            //界面之间的逻辑切换
            Baseview scanview   = Uimanager.Getinstance().Getviewfromviewid(typeof(Scanview).Name);
            Baseview caseview   = Uimanager.Getinstance().Getviewfromviewid(typeof(Showcaseview).Name);
            Baseview detailview = Uimanager.Getinstance().Getviewfromviewid(typeof(Detaildescriptionview).Name);

            Uistack.Getinstance().Openview(caseview, Viewstatus.HIDE);
            Uistack.Getinstance().Openview(detailview, Viewstatus.HIDE);
            Uistack.Getinstance().Openview(scanview, Viewstatus.HIDE);
        }
예제 #8
0
파일: Mainview.cs 프로젝트: weacw/skbrowser
        public override void Bindingeventstobtn()
        {
            //需要隐藏的界面
            Baseview hide = Uimanager.Getinstance().Getviewfromviewid(typeof(Mainview).Name);


            //打开showcase view
            Baseview showcaseview = Uimanager.Getinstance().Getviewfromviewid(typeof(Showcaseview).Name);

            showcase.onClick.AddListener(() =>
            {
                Uistack.Getinstance().Openview(showcaseview, Viewstatus.SHOW);
                Uistack.Getinstance().Openview(hide, Viewstatus.SHOW);
            });


            //打开menu view
            Baseview menuview = Uimanager.Getinstance().Getviewfromviewid(typeof(Menuview).Name);

            menu.onClick.AddListener(() =>
            {
                Uistack.Getinstance().Openview(menuview, Viewstatus.SHOW);
                Uistack.Getinstance().Openview(hide, Viewstatus.SHOW);
            });


            //打开scan view
            Baseview scanview = Uimanager.Getinstance().Getviewfromviewid(typeof(Scanview).Name);

            gotoscan.onClick.AddListener(() =>
            {
                Cloudrecoeventhandler.Getinstance().Restartscanning();
                Uistack.Getinstance().Openview(scanview, Viewstatus.SHOW);
                Uistack.Getinstance().Openview(hide, Viewstatus.SHOW);
            });
        }
예제 #9
0
 /// <summary>
 /// 添加按钮事件-下载资源/呈现资源
 /// </summary>
 public void Addfuntobtn()
 {
     Uistack.Getinstance().Openview(detaildescriptionview, Viewstatus.SHOW);
     Setupdetails();
 }