private void checkAndUpdateRepo(AsposeComponent component)
{
if (null == component)
return;
if (null == component.get_remoteExamplesRepository() || component.RemoteExamplesRepository == string.Empty)
{
showMessage("Examples not available", component.get_name() + " - " + Constants.EXAMPLES_NOT_AVAILABLE_MESSAGE, MessageBoxButtons.OK, MessageBoxIcon.Information);
examplesNotAvailable = true;
return;
}
else
{
examplesNotAvailable = false;
}
if (AsposeComponentsManager.isIneternetConnected())
{
CloneOrCheckOutRepo(component);
}
else
{
showMessage(Constants.INTERNET_CONNECTION_REQUIRED_MESSAGE_TITLE, component.get_name() + " - " + Constants.EXAMPLES_INTERNET_CONNECTION_REQUIRED_MESSAGE, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}