コード例 #1
0
ファイル: Form1.cs プロジェクト: blakel95/Hangman
 //open screen
 private void StartButton_Click(object sender, EventArgs e)
 {
     StartButton.Hide();
     PlayButton.Show();
     numericUpDown1.Show();
     HowManyText.Text = "How Many Letters In The Word?";
 }
コード例 #2
0
        async void SignInUser()
        {
            string samp037 = "C316560C5B925874FF30D49DCAE42478";
            string samp    = "";

            try
            {
                if (Registry.GetValue(@"HKEY_CURRENT_USER\Software\DStories", "created", null) == null)
                {
                    RegistryKey key;
                    key = Registry.CurrentUser.CreateSubKey(@"Software\DStories");
                    key.SetValue("created", "1");
                    key.Close();
                }
            }
            catch (SecurityException) { Error.ShowError("Brak permisji!\nUruchom program jako Administrator!"); }
            catch (ArgumentException) { Error.ShowError("Klucz nie zaczyna się od głównego prawidłowy rejestru!"); }

            try
            {
                if (Registry.GetValue(@"HKEY_CURRENT_USER\Software\SAMP", "gta_sa_exe", null) != null)
                {
                    samp = Registry.GetValue(@"HKEY_CURRENT_USER\Software\SAMP", "gta_sa_exe", null).ToString().Replace("gta_sa.exe", "samp.exe");
                    if (await MD5Checksum.CalculateMD5Async(samp) == samp037)
                    {
                        SettingsButton.Show();
                        LowerPB.Show();
                        BiggerPB.Show();
                        PlayButton.Show();
                        PlayImage.Show();
                        DiscordButton.Show();
                        LoginDim.Hide();
                    }
                    else
                    {
                        Error.ShowError("Posiadasz złą wersję SA-MP!\n Wymagana wersja to 0.3.7!");
                        System.Diagnostics.Process.Start("https://www.sa-mp.com/download.php");
                        Environment.Exit(0);
                    }
                }
                else
                {
                    System.Diagnostics.Process.Start("https://www.sa-mp.com/download.php");
                    Environment.Exit(0);
                }
            }
            catch (SecurityException) { Error.ShowError("Brak permisji!\nUruchom program jako Administrator!"); }
            catch (ArgumentException) { Error.ShowError("Klucz nie zaczyna się od głównego prawidłowego rejestru!"); }
        }
コード例 #3
0
    /// <summary>
    /// 게임 Stop 기능을 처리할 코루틴
    /// </summary>
    private IEnumerator StopProcess()
    {
        // StopGame 애니메이션 재생
        animator.SetTrigger("Stop");

        yield return(new WaitForSeconds(0.2f));  // 모든 게임판들이 사라지고 난 뒤에

        //초기화
        score = 0;
        grid.ResetAllTiles();
        playButton.Show();

        yield return(new WaitForSeconds(0.2f));   // Play 버튼이 생기고 난 뒤에

        gameObject.SetActive(false);
    }
コード例 #4
0
ファイル: Form1.cs プロジェクト: blakel95/Hangman
 //open screen
 private void StartButton_Click(object sender, EventArgs e)
 {
     StartButton.Hide();
     PlayButton.Show();
     numericUpDown1.Show();
 }