public string Validate() {
if (!NaturalGroundingFolder.EndsWith("\\"))
NaturalGroundingFolder += "\\";
if (SvpPath.Length == 0)
EnableSvp = false;
if (!Path.IsPathRooted(NaturalGroundingFolder))
return "Invalid Natural Grounding folder";
if (MediaPlayerApp == MediaPlayerApplication.Mpc) {
if (!File.Exists(MpcPath))
return "Invalid MPC-HC path";
if (SvpPath.Length > 0 && !File.Exists(SvpPath))
return "Invalid SVP path";
}
if (MediaPlayerApp == MediaPlayerApplication.Wmp) {
if (!MediaPlayer.WindowsMediaPlayer.IsWmpInstalled)
return "Windows Media Player is not installed";
}
return null;
}