private void OnStartSkypeAndSteamCommand(object _) { if (!File.Exists(config.SkypeFileName)) { statusSetter.SetStatus($"Unable to find Skype at location: {config.SkypeFileName}"); Exit(); return; } if (!File.Exists(config.SteamFileName)) { statusSetter.SetStatus($"Unable to find Steam at location: {config.SkypeFileName}"); Exit(); return; } ProcessStartInfo skypeProcessStartInfo = new ProcessStartInfo { WorkingDirectory = config.SkypeWorkingDirectory, FileName = config.SkypeFileName }; ProcessStartInfo steamProcessStartInfo = new ProcessStartInfo { WorkingDirectory = config.SteamWorkingDirectory, FileName = config.SteamFileName }; try { Process skypeProcess = Process.Start(skypeProcessStartInfo); Process steamProcess = Process.Start(steamProcessStartInfo); } catch (Exception e) { statusSetter.SetStatus($"Exception when opening process: {e}"); } Exit(); }
private void OnClearFavoritesCommand(object obj) { favoritesService.ClearFavorites(); statusSetter.SetStatus("Playlist cleared"); Exit(); }