public GameFormController(Game game,Person _user,string _t1,string _t2,string _t3) { t1 = _t1; t2 = _t2; t3 = _t3; user = _user; gform=new GameForm(game,user,t1,t2,t3); }
/// <summary> /// Initializes a new instance of the <see cref="GameFormController"/> class. /// </summary> /// <param name="game">New game</param> /// <param name="newUser">New user</param> /// <param name="newt1">New text 1</param> /// <param name="newt2">New text 2</param> /// <param name="newt3">New text 3</param> public GameFormController(Game game, Person newUser, string newt1, string newt2, string newt3) { this.t1 = newt1; this.t2 = newt2; this.t3 = newt3; this.user = newUser; this.gform = new GameForm(game, this.user, this.t1, this.t2, this.t3); }
/// <summary> /// Initializes a new instance of the <see cref="GameForm"/> class. /// </summary> /// <param name="game">Game to set</param> /// <param name="newUser">User to set</param> /// <param name="t1">string t1</param> /// <param name="t2">game text</param> /// <param name="t3">string t3</param> public GameForm(Game game, Person newUser, string t1, string t2, string t3) { this.user = newUser; this.InitializeComponent(); this.button1.ForeColor = Color.DarkGray; this.button2.ForeColor = Color.DarkGray; this.gfcntrl = new GameFormController(); this.src1 = t3; this.src2 = t1; this.text1 = t2; Image image = Image.FromFile(this.src2); this.pictureBox1.Image = image; image = Image.FromFile(this.src1); this.pictureBox2.Image = image; this.label1.Text = this.text1; if (this.user.Glib.Find(game.Name)) { this.button1.Text = "Play"; this.button1.Enabled = false; } }
public GameForm(Game game,Person _user,string t1,string t2,string t3) { user=_user; InitializeComponent(); button1.ForeColor = Color.DarkGray; button2.ForeColor = Color.DarkGray; gfcntrl=new GameFormController(); src1 = t3; src2 = t1; text1 = t2; Image image = Image.FromFile(src2); pictureBox1.Image = image; image = Image.FromFile(src1); pictureBox2.Image = image; label1.Text = text1; if (user.Glib.find(game.Name)) { button1.Text = "Play"; button1.Enabled = false; } }
public void Add(Game Game) { bracket.Add(Game); }
public void Set(Game Game) { for (int i = 0; i < bracket.Count; i++) { if (bracket[i].Name == Game.Name) { bracket[i] = Game; } } }
/// <summary> /// Add to list /// </summary> /// <param name="game">Game to add</param> public void Add(Game game) { this.bracket.Add(game); }
/// <summary> /// Set game /// </summary> /// <param name="game">Game to set</param> public void Set(Game game) { for (int i = 0; i < this.bracket.Count; i++) { if (this.bracket[i].Name == game.Name) { this.bracket[i] = game; } } }