/// <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); } }
/// <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); } }
public void GolfLogicTest() { try { SomeCardGamesAPI.Error.ErrorReporter.IsUnitTesting = true; GolfLogic a; a = new GolfLogic(); } catch (Exception e) { Assert.Fail(e.Message); } }
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); } }
/// <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); } }