Esempio n. 1
0
        public GetCurrentVersionResponse GetCurrentVersion(GetCurrentVersionRequest request)
        {
            object[] results = this.Invoke("GetCurrentVersion", new object[] {
                request
            });

            return((GetCurrentVersionResponse)(results[0]));
        }
Esempio n. 2
0
 /// <remarks/>
 public void GetCurrentVersionAsync(GetCurrentVersionRequest request, object userState)
 {
     if ((this.GetCurrentVersionOperationCompleted == null))
     {
         this.GetCurrentVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCurrentVersionOperationCompleted);
     }
     this.InvokeAsync("GetCurrentVersion", new object[] {
         request
     }, this.GetCurrentVersionOperationCompleted, userState);
 }
Esempio n. 3
0
 public static void CheckForNewVersion()
 {
     var languageString = (ApplicationSettings.UiCulture == null ? "" : ApplicationSettings.UiCulture.ToString());
       var request = new GetCurrentVersionRequest() { UserVersion = Application.ProductVersion, UserLanguage = languageString};
       var server = new QuickRouteServer.QuickRouteServer();
       server.GetCurrentVersionCompleted += GetCurrentVersionFromServerCompleted;
       try
       {
     server.GetCurrentVersionAsync(request);
       }
       catch(Exception)
       {
     // probably no connection to Internet
       }
 }
Esempio n. 4
0
 /// <remarks/>
 public void GetCurrentVersionAsync(GetCurrentVersionRequest request, object userState) {
     if ((this.GetCurrentVersionOperationCompleted == null)) {
         this.GetCurrentVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCurrentVersionOperationCompleted);
     }
     this.InvokeAsync("GetCurrentVersion", new object[] {
                 request}, this.GetCurrentVersionOperationCompleted, userState);
 }
Esempio n. 5
0
 /// <remarks/>
 public void GetCurrentVersionAsync(GetCurrentVersionRequest request) {
     this.GetCurrentVersionAsync(request, null);
 }
Esempio n. 6
0
 public GetCurrentVersionResponse GetCurrentVersion(GetCurrentVersionRequest request) {
     object[] results = this.Invoke("GetCurrentVersion", new object[] {
                 request});
     return ((GetCurrentVersionResponse)(results[0]));
 }
Esempio n. 7
0
 /// <remarks/>
 public void GetCurrentVersionAsync(GetCurrentVersionRequest request)
 {
     this.GetCurrentVersionAsync(request, null);
 }