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);
            }
        }
 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;
         validateForm();
         return;
     }
     else
     {
         examplesNotAvailable = false;
         validateForm();
     }
     // String repoPath;
     if (GitHelper.isExamplesDefinitionsPresent(component))
     {
         CloneOrCheckOutRepo(component);
     }
     else
     {
         DialogResult result = showMessage("Examples download required", component.get_name() + " - " + Constants.EXAMPLES_DOWNLOAD_REQUIRED, MessageBoxButtons.YesNo, MessageBoxIcon.Information);
         if (result == DialogResult.Yes)
         {
             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);
             }
         }
     }
 }