Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        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 = "";
                }
            };
        }
Ejemplo n.º 4
0
 public TileManager(ScrabbleForm scrabbleForm)
 {
     ScrabbleForm = scrabbleForm;
 }
Ejemplo n.º 5
0
 public RackManager(ScrabbleForm scrabbleForm)
 {
     ScrabbleForm = scrabbleForm;
     Tiles        = new List <RackTile>();
 }