コード例 #1
0
        private void btnTahminYap_Click(object sender, EventArgs e)
        {
            if (!ActiveGame.IsGameStarted)
            {
                return;
            }
            string inputtext = txtInput.Text.TrimStart('0');

            if (inputtext.Length != ActiveGame.ActiveNumber.Length)
            {
                Mesaj.mbox.Göster(String.GetLangText("GAME_ERR_THM_LEN", ActiveGame.ActiveNumber.Length));
                return;
            }
            ActiveGame.EnterGuess(inputtext);
        }