Ejemplo n.º 1
0
 /// <summary>
 /// The constructor for the MiddleStack class.
 /// </summary>
 public MiddleStack(GolfLogic GolfGame)
 {
     try
     {
         this.ConstructMe(LoadedCardResources.GetBack(), this.GetSize(), this.GetTopLeft());
         Game = GolfGame;
     }
     catch (Exception TheException)
     {
         ErrorReporter.Report(TheException);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Does some startup logic.
 /// </summary>
 /// <param name="Game"></param>
 public void StartUp(object Game)
 {
     try
     {
         this.Game  = (GolfLogic)Game;
         MainGolfUI = new MainUI(true, this.Game);
     }
     catch (Exception TheException)
     {
         ErrorReporter.Report(TheException);
     }
 }
Ejemplo n.º 3
0
 public void GolfLogicTest()
 {
     try
     {
         SomeCardGamesAPI.Error.ErrorReporter.IsUnitTesting = true;
         GolfLogic a;
         a = new GolfLogic();
     }
     catch (Exception e)
     {
         Assert.Fail(e.Message);
     }
 }
Ejemplo n.º 4
0
 public void StartTest()
 {
     try
     {
         SomeCardGamesAPI.Error.ErrorReporter.IsUnitTesting = true;
         SomeCardGamesAPI.Utility.VariableStorage.TheForm   = new System.Windows.Forms.Form();
         GolfLogic a;
         a = new GolfLogic();
         a.New();
     }
     catch (Exception e)
     {
         Assert.Fail(e.Message);
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// The constructor for the MainUI class.
        /// </summary>
        /// <param name="Visibility"></param>
        /// <param name="GolfGame"></param>
        public MainUI(bool Visibility, GolfLogic GolfGame)
        {
            try
            {
                CardBox[] controls = new CardBox[1];
                MiddleStack = new CardBox(new MiddleStack(GolfGame));

                controls[0] = MiddleStack;

                this.ConstructMe(VariableStorage.TheForm, controls, Visibility);
            }
            catch (Exception TheException)
            {
                ErrorReporter.Report(TheException);
            }
        }