Exemplo n.º 1
0
 public Settings(string path)
 {
     InitializeComponent();
     _path     = path;
     configMgr = new ConfigMgr();
     if (!File.Exists(_path))
     {
         File.Create(_path).Close();
         configMgr.SetDefaults(_path);
         MessageBox.Show("Please configure mb_SongHistory in the Preferences > Plugins menu, then restart MusicBee.");
     }
 }
Exemplo n.º 2
0
        private void GetSettings()
        {
            _configMgr = new ConfigMgr();

            if (!File.Exists(_path))
            {
                File.Create(_path).Close();
                _configMgr.SetDefaults(_path);
                MessageBox.Show("Please configure mb_SongHistory in the Preferences > Plugins menu, then restart MusicBee.");
            }
            else
            {
                SetVariables();
            }
        }