Esempio n. 1
0
        public VoicemailControl()
        {
            InitializeComponent();

            soundPlayer = new WOSI.Utilities.Sound.SoundPlayer();
            soundPlayer.SoundFinishedPlaying += new EventHandler(soundPlayer_SoundFinishedPlaying);
            soundPlayer.SoundPlaying += new EventHandler<WOSI.Utilities.Sound.SoundPlayingEventArgs>(soundPlayer_SoundPlaying);
            try
            {
                trkVolume.Value = (int)soundPlayer.SoundVolume;
            }
            catch
            {
                trkVolume.Enabled = false;
                //trkVolume.Value = 0;
            }
        }
        public VoicemailControl()
        {
            InitializeComponent();

            soundPlayer = new WOSI.Utilities.Sound.SoundPlayer();
            soundPlayer.SoundFinishedPlaying += new EventHandler(soundPlayer_SoundFinishedPlaying);
            soundPlayer.SoundPlaying         += new EventHandler <WOSI.Utilities.Sound.SoundPlayingEventArgs>(soundPlayer_SoundPlaying);
            try
            {
                trkVolume.Value = (int)soundPlayer.SoundVolume;
            }
            catch
            {
                trkVolume.Enabled = false;
                //trkVolume.Value = 0;
            }
        }