Esempio n. 1
0
        private void ConvertButton_OnClick(object sender, RoutedEventArgs e)
        {
            ConvertThreadStart  = Converter.Convert;
            ConvertThreadStart += () => {
                Toaster.FinishedConversion();
                switch (Settings.SoundToPlay)
                {
                case 0:
                    Sound.PlaySound(Sound.HitSoundPlayer);
                    break;

                case 1:
                    Sound.PlaySound(Sound.PizzaSoundPlayer);
                    break;

                case 2:
                    Sound.PlaySound(Sound.SaxSoundPlayer);
                    break;

                case 3:
                    Sound.PlaySound(Sound.SteelSoundPlayer);
                    break;

                default:
                    Sound.PlaySound(Sound.HitSoundPlayer);
                    break;
                }
            };
            ConvertThread = new Thread(ConvertThreadStart);
            ConvertThread.Start();
        }