private bool ValidateForm() { ResetBackgroundColors(); var eCol = new SolidColorBrush(Colors.OrangeRed); if (ExecutablePath.IsNullOrEmpty()) { _log.StatusError("Executable path not set."); executablePathTxtBox.Background = eCol; return(false); } if (!File.Exists(ExecutablePath)) { _log.StatusError("Ececutable not found."); executablePathTxtBox.Background = eCol; return(false); } if (GameRoot.IsNullOrEmpty()) { _log.StatusError("Gameroot folder not set."); gameRootPathTxtBox.Background = eCol; return(false); } if (!Directory.Exists(GameRoot)) { _log.StatusMessage("Game root folder not found."); gameRootPathTxtBox.Background = eCol; return(false); } return(true); }