Exemple #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.PPTController);

            _imageView       = FindViewById <BorderedImageView>(Resource.Id.panoramaImage);
            _txtMemo         = FindViewById <TextView>(Resource.Id.txtMemo);
            _bottomSlideList = FindViewById <BottomHorizontalListView>(Resource.Id.bottomSlideList);

            _ip   = Intent.GetStringExtra("ip");
            _port = Intent.GetStringExtra("port");

            //string document = Intent.GetStringExtra("document");
            string document = App.DocumentText;

            if (string.IsNullOrEmpty(document) == true)
            {
                Intent i = new Intent(this, typeof(MainActivity));

                i.PutExtra("ip", _ip);
                i.PutExtra("port", _port);

                StartActivity(i);
            }

            _pptDocument = Newtonsoft.Json.JsonConvert.DeserializeObject <PPTDocument>(document);

            if (_pptDocument != null)
            {
                LoadDocument();
            }

            StartShow(this.SlideList[0].AnimationCount);
            SetSlide(0);

            _bottomSlideList.Adapter = new BottomItemAdapter(this, Resource.Layout.bottomRow);
            _imageView.SetOnTouchListener(this);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.PPTController);

            _imageView = FindViewById<BorderedImageView>(Resource.Id.panoramaImage);
            _txtMemo = FindViewById<TextView>(Resource.Id.txtMemo);
            _bottomSlideList = FindViewById<BottomHorizontalListView>(Resource.Id.bottomSlideList);

            _ip = Intent.GetStringExtra("ip");
            _port = Intent.GetStringExtra("port");

            //string document = Intent.GetStringExtra("document");
            string document = App.DocumentText;
            if (string.IsNullOrEmpty(document) == true)
            {
                Intent i = new Intent(this, typeof(MainActivity));

                i.PutExtra("ip", _ip);
                i.PutExtra("port", _port);

                StartActivity(i);
            }

            _pptDocument = Newtonsoft.Json.JsonConvert.DeserializeObject<PPTDocument>(document);

            if (_pptDocument != null)
            {
                LoadDocument();
            }

            StartShow(this.SlideList[0].AnimationCount);
            SetSlide(0);

            _bottomSlideList.Adapter = new BottomItemAdapter(this, Resource.Layout.bottomRow);
            _imageView.SetOnTouchListener(this);
        }