Example #1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.LayoutSecond);
     _connectivity = new Connectivity(this);
     _webView      = FindViewById <WebView>(Resource.Id.wbPostContent);
     _webView.Settings.JavaScriptEnabled = true;
     _webView.SetWebViewClient(new CustomWebViewClient());
     _webView.LoadData(Resources.GetString(Resource.String.msg_wait_loading), "text/html; charset=utf-8", null);
     Initalization = Init();
 }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            _connectivity = new Connectivity(this);
            slots         = new Slot[] {
                new Slot(this, FindViewById <ImageView>(Resource.Id.slot1), int.Parse(Resources.GetString(Resource.String.roll1))),
                new Slot(this, FindViewById <ImageView>(Resource.Id.slot2), int.Parse(Resources.GetString(Resource.String.roll2))),
                new Slot(this, FindViewById <ImageView>(Resource.Id.slot3), int.Parse(Resources.GetString(Resource.String.roll3)))
            };
            _timer           = new System.Threading.Timer(_ => OnTimerTick(), null, 0, 1000 * int.Parse(Resources.GetString(Resource.String.remote_checkout_interval)));
            txtCash          = FindViewById <TextView>(Resource.Id.txtCash);
            txtStatusMessage = FindViewById <TextView>(Resource.Id.message);
            InitailizeGame();
            btnStart        = FindViewById <Button>(Resource.Id.btnStart);
            btnStart.Click += Btn_Click;
        }