Esempio n. 1
0
        //Used as a part of constructor for this partial class
        private void InitializeTabAccount()
        {
            this.RewardArray = new MGBRewardArray();

            this._baseAccountList                               = new List <string>();
            this._baseAccountBindingList                        = new BindingSource();
            this._baseAccountBindingList.DataSource             = this._baseAccountList;
            this.lstAvailableAccounts.DataSource                = this._baseAccountBindingList;
            this._baseAccountBindingList.RaiseListChangedEvents = true;
            //this.RefreshBaseAccountView();

            this._chosenAccountList                               = new List <string>();
            this._chosenAccountBindingList                        = new BindingSource();
            this._chosenAccountBindingList.DataSource             = this._chosenAccountList;
            this.lstChosenAccounts.DataSource                     = this._chosenAccountBindingList;
            this._chosenAccountBindingList.RaiseListChangedEvents = true;
            //this.RefreshChosenAccountView();

            ButtonAddEnableManagement();
            ButtonRemoveEnableManagement();
            ButtonSetEnableManagement();
        }
Esempio n. 2
0
 public void SetAllGames(MiniGameType gameType, MGBRewardArray gamesLeft)
 {
     this._gamesLeft = gamesLeft;
     this._gameType  = gameType;
 }
Esempio n. 3
0
 public bool SetChosenAccountAt(int index, byte pointsLeft, MiniGameType gameType, MGBRewardArray gameLvlPoints)
 {
     if (index >= 0 && index < this._chosenAccountList.Count)
     {
         this._chosenAccountList[index].SetAllGames(gameType, gameLvlPoints);
         this._chosenAccountList[index].AccountBase.SetPointsLeft(pointsLeft);
         return(true);
     }
     else
     {
         OnErrorOcured(this, new ErrorEventArgs(ErrorMessages.IndexOutOfBounds, ErrorSources.ModelChosenAccountList));
         return(false);
     }
 }
Esempio n. 4
0
 //probably shouldn't exist empty object
 private MGBAccount()
 {
     this._accountBase = new MGBAccountBase();
     this._gamesLeft   = new MGBRewardArray();
     this._gameType    = MiniGameType.None;
 }