public void SetupGameScreenData(GameScreenSetup dataFromUI)
        {
            if (dataFromUI.TeamData == null)
            {
                throw new Exception("TeamData is null");
            }

            ManagerAdapter ma = new ManagerAdapter();
            WorldAdapter   wa = new WorldAdapter();

            SetupData             = dataFromUI;
            SetupData.ManagerData = ma.GetManager(SetupData.TeamData.ManagerID);

            MyTeam = (wa.CurrentManagerID == SetupData.TeamData.ManagerID);

            if (MyTeam)
            {
                SetupData.MainButtons.Add(LangResources.CurLang.Save);
                SetupData.MainButtons.Add(LangResources.CurLang.UndoChanges);
            }

            SetupData.MainButtons.Add(LangResources.CurLang.Back);
            SetupData.ShowContinueButton = MyTeam;

            SetupData.Title1 = SetupData.TeamData.Name;
            SetupData.Title2 = SetupData.ManagerData.Name;

            ctlFormation.team = SetupData.TeamData;
        }
Example #2
0
        public void SetupGameScreenData(GameScreenSetup dataFromUI)
        {
            if (dataFromUI.TeamData == null)
            {
                throw new Exception("TeamData is null");
            }

            ManagerAdapter ma = new ManagerAdapter();
            WorldAdapter   wa = new WorldAdapter();

            SetupData             = dataFromUI;
            SetupData.ManagerData = ma.GetManager(SetupData.TeamData.ManagerID);

            MyTeam = (wa.CurrentManagerID == SetupData.TeamData.ManagerID);

            SetupData.ShowContinueButton = MyTeam;
            SetupData.MainButtons.Add(LangResources.CurLang.Tactics);
            SetupData.MainButtons.Add(LangResources.CurLang.Back);


            SetupData.Title1 = SetupData.TeamData.Name;
            SetupData.Title2 = SetupData.ManagerData.Name;

            UpdatePlayers();
        }
        public void SetupGameScreenData(GameScreenSetup dataFromUI)
        {
            SetupData = dataFromUI;
            SetupData.ShowContinueButton = true;
            SetupData.ShowDate           = true;

            SetupData.Title1 = "Results";
            SetupData.Title2 = "";

            ShowResults();
        }
        public void SetupGameScreenData(GameScreenSetup dataFromUI)
        {
            SetupData = dataFromUI;
            SetupData.MainButtons.Add(LangResources.CurLang.Start);

            SetupData.ShowContinueButton = false;
            SetupData.ShowDate           = true;

            SetupData.Title1 = LangResources.CurLang.MatchDay;
            SetupData.Title2 = "Team One v Team Two";
        }
Example #5
0
        public void SetupGameScreenData(GameScreenSetup dataFromUI)
        {
            if (dataFromUI.ManagerData == null)
            {
                throw new Exception("ManagerData is null");
            }

            TeamAdapter ta = new TeamAdapter();

            SetupData                    = dataFromUI;
            SetupData.TeamData           = ta.GetTeamByManager(SetupData.ManagerData.UniqueID);
            SetupData.ShowContinueButton = true;

            SetupData.Title1 = SetupData.TeamData.Name;
            SetupData.Title2 = SetupData.ManagerData.Name;

            UpdateEmails();
            UpdateLeagueTable();
        }