private void Initialize()
        {
            try
            {
                _redColor = Resources.GetColor(Resource.Color.task_progress_red);
                _greenColor = Resources.GetColor(Resource.Color.task_progress_green);

                _playerName = FindViewById<TextView>(Resource.Id.playerInGameName);
                _playerPosition = FindViewById<TextView>(Resource.Id.playerInGamePostion);
                _playerScore = FindViewById<TextView>(Resource.Id.playerInGameScore);
                _makeThisButton = FindViewById<Button>(Resource.Id.makeThisButton);
                _refuseButton = FindViewById<Button>(Resource.Id.refuseButton);
                _cardImage = FindViewById<ImageButton>(Resource.Id.taskImageButton);
                _actionButton = (TextView)CreateActionButton(Resource.Drawable.table_button);
                _points = FindViewById<TextView>(Resource.Id.points);
                _x2 = FindViewById<TextView>(Resource.Id.x2);
                _coninueButton = FindViewById<ImageButton>(Resource.Id.continueButton);
                _scoreTextView = FindViewById<TextView>(Resource.Id.scoreString);

                _taskEnumerator = Rep.DatabaseHelper.Tasks.Enumerator;
                _playerEnumerator = Rep.Instance.Players.Enumerator;

                _playerName.SetTypeface(Rep.FontManager.Get(Font.Bold), TypefaceStyle.Normal);
                _playerPosition.SetTypeface(Rep.FontManager.Get(Font.Regular), TypefaceStyle.Normal);
                _makeThisButton.SetTypeface(Rep.FontManager.Get(Font.BoldCondensed), TypefaceStyle.Normal);
                _refuseButton.SetTypeface(Rep.FontManager.Get(Font.BoldCondensed), TypefaceStyle.Normal);
                _playerScore.SetTypeface(Rep.FontManager.Get(Font.BoldCondensed), TypefaceStyle.Normal);
                _points.SetTypeface(Rep.FontManager.Get(Font.Bold), TypefaceStyle.Normal);
                _x2.SetTypeface(Rep.FontManager.Get(Font.Bold), TypefaceStyle.Normal);
                _cardImage.SetImageResource(Resource.Drawable.card_backside); ;
                _scoreTextView.SetTypeface(Rep.FontManager.Get(Font.Condensed), TypefaceStyle.Normal);

                _taskProgressView = FindViewById<RelativeLayout>(Resource.Id.taskProgressView);
            }
            catch (Exception exception)
            {
                GaService.TrackAppException(this.Class, "Initialize", exception, true);
            }
        }
Exemple #2
0
        private void Initialize()
        {
            try
            {
                _redColor   = Resources.GetColor(Resource.Color.task_progress_red);
                _greenColor = Resources.GetColor(Resource.Color.task_progress_green);

                _playerName     = FindViewById <TextView>(Resource.Id.playerInGameName);
                _playerPosition = FindViewById <TextView>(Resource.Id.playerInGamePostion);
                _playerScore    = FindViewById <TextView>(Resource.Id.playerInGameScore);
                _makeThisButton = FindViewById <Button>(Resource.Id.makeThisButton);
                _refuseButton   = FindViewById <Button>(Resource.Id.refuseButton);
                _cardImage      = FindViewById <ImageButton>(Resource.Id.taskImageButton);
                _actionButton   = (TextView)CreateActionButton(Resource.Drawable.table_button);
                _points         = FindViewById <TextView>(Resource.Id.points);
                _x2             = FindViewById <TextView>(Resource.Id.x2);
                _coninueButton  = FindViewById <ImageButton>(Resource.Id.continueButton);
                _scoreTextView  = FindViewById <TextView>(Resource.Id.scoreString);

                _taskEnumerator   = Rep.DatabaseHelper.Tasks.Enumerator;
                _playerEnumerator = Rep.Instance.Players.Enumerator;

                _playerName.SetTypeface(Rep.FontManager.Get(Font.Bold), TypefaceStyle.Normal);
                _playerPosition.SetTypeface(Rep.FontManager.Get(Font.Regular), TypefaceStyle.Normal);
                _makeThisButton.SetTypeface(Rep.FontManager.Get(Font.BoldCondensed), TypefaceStyle.Normal);
                _refuseButton.SetTypeface(Rep.FontManager.Get(Font.BoldCondensed), TypefaceStyle.Normal);
                _playerScore.SetTypeface(Rep.FontManager.Get(Font.BoldCondensed), TypefaceStyle.Normal);
                _points.SetTypeface(Rep.FontManager.Get(Font.Bold), TypefaceStyle.Normal);
                _x2.SetTypeface(Rep.FontManager.Get(Font.Bold), TypefaceStyle.Normal);
                _cardImage.SetImageResource(Resource.Drawable.card_backside);;
                _scoreTextView.SetTypeface(Rep.FontManager.Get(Font.Condensed), TypefaceStyle.Normal);

                _taskProgressView = FindViewById <RelativeLayout>(Resource.Id.taskProgressView);
            }
            catch (Exception exception)
            {
                GaService.TrackAppException(this.Class, "Initialize", exception, true);
            }
        }
Exemple #3
0
 public PlayerList()
 {
     _enumerator = new PlayerEnumerator(this);
     _players = new List<Player>();
 }