public bool PromptUserToStartService()
{
if(ServiceManager == null)
{
throw new Exception("Null Service Manager");
}
if(!IsServiceRunning())
{
if(PopupController == null)
{
throw new Exception("Null Popup Controller");
}
var startResult = PopupController.Show("The Warewolf service isn't running would you like to start it?", "Service not Running", MessageBoxButton.YesNo, MessageBoxImage.Question, null);
if(startResult == MessageBoxResult.None || startResult == MessageBoxResult.No || startResult == MessageBoxResult.Cancel)
{
return false;
}
return true;
}
return false;
}