private void GetGlymaVersionCompleted(object sender, Service.GetApplicationVersionCompletedEventArgs eventArgs)
{
ServiceProxy.GetApplicationVersionCompleted -= GetGlymaVersionCompleted;
Service.GlymaVersion serverVersion = eventArgs.Result;
if (GlymaClientVersion.RequiresRefresh(serverVersion))
{
Proxy.InitialiseMapManagerEventArgs initialisationEventArgs = new Proxy.InitialiseMapManagerEventArgs(false);
initialisationEventArgs.ErrorMessage = "The version of Glyma your browser is using is out-of-date. Please clear your browser's cache and refresh your browser to download the latest version of Glyma.";
InitialiseMapManagerCompleted(this, initialisationEventArgs);
}
else
{
ServiceProxy.GetAllMapTypesCompleted += GetAllMapTypesCompleted;
ServiceProxy.GetAllMapTypesAsync(System.Windows.Browser.HtmlPage.Document.DocumentUri.ToString());
}
}