/* * Automatically display the score associated with the given tile string on the given label */ private void AutoSetScore(Label label, string tileString) { if (IsSpeedRound) { label.Text = "0"; } else if (string.IsNullOrEmpty(tileString)) { label.Text = string.Empty; } else { label.Text = TileScoreTable.LookupScore(tileString).ToString(); } }
static void Main(string[] args) { // Load the set of images used to represent tiles if (!TileImageTable.LoadImages()) { return; } // Load the tile scores from a file if (!TileScoreTable.BuildFromFile(tileScoresFilename)) { return; } // Load the dictionary from a file if (!BuildDictionaryFromFile(dictFilename)) { return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new StartForm()); }