private async void Story_B_Click(object sender, RoutedEventArgs e)
 {
     Story_Window.Visibility = Visibility.Visible;
     Story_Window.Window_Show();
     Story_Window.Opacity = 0;
     while (Story_Window.Opacity <= 1 && Story_Window.IsClosing == false)
     {
         Story_Window.Opacity += 0.05;
         await Task.Delay(1000 / 30);
     }
     while (Story_Window.IsClosed == false)
     {
         await Task.Delay(100);
     }
     if (File.Exists(Path + "/Resources/Save/Load_Story.dat"))
     {
         Window_Close           = true;
         White_Image.Opacity    = 0;
         White_Image.Visibility = Visibility.Visible;
         while (White_Image.Opacity <= 1)
         {
             BGM.settings.volume -= 2;
             White_Image.Opacity += 0.02;
             await Task.Delay(1000 / 30);
         }
         BGM.controls.stop();
         Class.Math_01 f = new Class.Math_01();
         f.Show();
         Close();
     }
 }
 async void Start()
 {
     //Math_01を表示(数学のメインウィンドウ)
     White_Image.Visibility = Visibility.Visible;
     White_Image.Opacity    = 0;
     IsOtherWindowShowed    = true;
     Window_Close           = true;
     while (true)
     {
         BGM.settings.volume -= 1;
         if (White_Image.Opacity >= 1)
         {
             Class.Math_01 f = new Class.Math_01();
             f.Show();
             BGM.controls.stop();
             Close();
             break;
         }
         White_Image.Opacity += 0.02;
         await Task.Delay(1000 / 30);
     }
 }
        private async void Dialog_Yes_Image_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (Difficult_Question_Mode == false)
            {
                //はいが選択された場合、白い画像をフェードインさせてソフトを終了させる
                SE_Play(Path + "/Resources/SE/SE_02.wav");
                White_Image.Visibility = Visibility.Visible;
                White_Image.Opacity    = 0;
                while (White_Image.Opacity < 1)
                {
                    IsImageClicked       = true;
                    White_Image.Opacity += 0.02;
                    await Task.Delay(1000 / 30);
                }
                await Task.Delay(500);

                while (Opacity > 0)
                {
                    Opacity -= 0.05;
                    await Task.Delay(1000 / 30);
                }
                IsImageClicked = false;
                Close();
            }
            else
            {
                int Number = 0;
                using (var eifs = new FileStream(Path + "/Resources/Save/Number_Of_Times.dat", FileMode.Open, FileAccess.Read))
                {
                    using (var eofs = new FileStream(Path + "/Resources/Save/Number_Of_Times_Temp.dat", FileMode.Create, FileAccess.Write))
                    {
                        FileEncode.FileEncryptor.Decrypt(eifs, eofs, "Created_By_SRTTbacon_and_Gumipoteti_E");
                        StreamReader str4 = new StreamReader(Path + "/Resources/Save/Number_Of_Times_Temp.dat");
                        Number = int.Parse(str4.ReadToEnd());
                        str4.Close();
                    }
                    File.Delete(Path + "/Resources/Save/Number_Of_Times_Temp.dat");
                }
                if (Number != 0 || IsDebug == true)
                {
                    SE_01_Play(Path + "/Resources/SE/SE_09.wav");
                    Window_Close = true;
                    StreamWriter stw2 = File.CreateText(Path + "/Resources/Temp.dat");
                    stw2.WriteLine(Number - 1);
                    stw2.Close();
                    using (var eifs = new FileStream(Path + "/Resources/Temp.dat", FileMode.Open, FileAccess.Read))
                    {
                        using (var eofs = new FileStream(Path + "/Resources/Save/Number_Of_Times.dat", FileMode.Create, FileAccess.Write))
                        {
                            FileEncode.FileEncryptor.Encrypt(eifs, eofs, "Created_By_SRTTbacon_and_Gumipoteti_E");
                        }
                    }
                    File.Delete(Path + "/Resources/Temp.dat");
                    White_Image.Visibility = Visibility.Visible;
                    White_Image.Opacity    = 0;
                    while (White_Image.Opacity < 1)
                    {
                        IsImageClicked       = true;
                        BGM.settings.volume -= 2;
                        White_Image.Opacity += 0.02;
                        await Task.Delay(1000 / 30);
                    }
                    BGM.controls.stop();
                    await Task.Delay(1000);

                    StreamWriter stw = File.CreateText(Path + "/Resources/Save/Last_Question_Mode.dat");
                    stw.Close();
                    Class.Math_01 f = new Class.Math_01();
                    f.Show();
                    Close();
                    Difficult_Question_Mode = false;
                }
                else
                {
                    SE_Play(Path + "/Resources/SE/SE_01.wav");
                }
            }
        }