public GameLog(ScrabbleForm _scrabbleForm) { this.Enabled = false; this.Location = new Point(836, 160); this.Multiline = true; this.Name = "logTxtBox"; this.ScrollBars = ScrollBars.Both; this.Font = new Font("Verdana", 12.75F, FontStyle.Regular); this.Size = new Size(327, 335); this.TabIndex = 3; this.ScrabbleForm = _scrabbleForm; LogMessage("Welcome to Scrabble - good luck!"); ScrabbleForm.Controls.Add(this); }
public WordHint(ScrabbleForm _scrabbleForm) { InitializeComponent(); this.DisplayMember = "DisplayText"; this.Enabled = true; this.Location = new Point(836, 500); this.Name = "wordHintTxtBox"; //this.ScrollBars = ScrollBars.Both; this.Font = new Font("Verdana", 8F, FontStyle.Regular); this.Size = new Size(327, 335); this.TabIndex = 3; this.ScrabbleForm = _scrabbleForm; this.SelectionMode = SelectionMode.One; this.SelectedIndexChanged += WordHint_SelectedIndexChanged; this.MouseMove += listBox_MouseMove; ScrabbleForm.Controls.Add(this); }
public ScrabbleTile(ScrabbleForm scrabbleForm) { InitializeComponent(); ScrabbleForm = scrabbleForm; this.CharacterCasing = CharacterCasing.Upper; this.TextChanged += (s, e) => { var tile = (ScrabbleTile)s; tile.OnLetterPlaced(this.Text); var rackTile = ScrabbleForm.PlayerManager.CurrentPlayer.Tiles.Find(r => r.Text == this.Text); if (rackTile != null) { rackTile.Text = ""; } }; }
public TileManager(ScrabbleForm scrabbleForm) { ScrabbleForm = scrabbleForm; }
public RackManager(ScrabbleForm scrabbleForm) { ScrabbleForm = scrabbleForm; Tiles = new List <RackTile>(); }