Ejemplo n.º 1
0
        /// <summary>
        /// The settings changed.
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        private void SettingsChanged(SettingChangedEventArgs args)
        {
            if (args.Name == "RootPath")
            {
                Properties.Settings.Default.MusicFilePath = args.Value;
                Properties.Settings.Default.Save();
            }

            if (args.Name == "Volume")
            {
                var newVolume = float.Parse(args.Value);
                Properties.Settings.Default.Volume = newVolume;
                Properties.Settings.Default.Save();
            }
        }
Ejemplo n.º 2
0
 void settings_OnSettingChanged(SettingChangedEventArgs args)
 {
     if (args.Name == "Volume")
     {
         this.ChangeVolume(float.Parse(args.Value));
     }
 }
 /// <summary>
 /// The settings on on setting changed.
 /// </summary>
 /// <param name="args">
 /// The args.
 /// </param>
 private void SettingsOnOnSettingChanged(SettingChangedEventArgs args)
 {
     if (args.Name == "RootPath")
     {
         this.Found.Clear();
         this.GetMusicFiles(args.Value);
     }
 }