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(); } }
public void Show() { apiAccess.Run(Settings.SavedFile.MpcPath); watcher.Start(); }