Exemple #1
0
        protected override void OnCreate(Bundle bundle)
        {
            Window.RequestFeature(WindowFeatures.NoTitle);
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Equipment);

            UIControl.ResetControls();

            string username = Intent.GetStringExtra("username") ?? null;

            //set the global username for later use
            if (GlobalVariable.userID == "" || GlobalVariable.userID == null)
            {
                GlobalVariable.userID = username;
            }

            initEquipment(GlobalVariable.userID);

            if (SignalRListener.hubConn == null)
            {
                SignalRListener.Init();
            }

            SignalRListener.Listen(this);
        }