Exemple #1
0
        public void EnsureRunning()
        {
            if (!timerKillIfFrozen.Enabled)
            {
                timerKillIfFrozen.Start();
            }

            if ((api.MpcProcess == null || api.MpcProcess.HasExited) && runAttemps < 3)
            {
                runAttemps++;
                timerKillIfFrozen.Interval = 3000 + 3000 * runAttemps;
                api.Run();
            }
        }
Exemple #2
0
 public void Show()
 {
     apiAccess.Run(Settings.SavedFile.MpcPath);
     watcher.Start();
 }