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

            return((GetCurrentVersionResponse)(results[0]));
        }
Exemple #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);
 }
Exemple #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
       }
 }
Exemple #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);
 }
Exemple #5
0
 /// <remarks/>
 public void GetCurrentVersionAsync(GetCurrentVersionRequest request) {
     this.GetCurrentVersionAsync(request, null);
 }
Exemple #6
0
 public GetCurrentVersionResponse GetCurrentVersion(GetCurrentVersionRequest request) {
     object[] results = this.Invoke("GetCurrentVersion", new object[] {
                 request});
     return ((GetCurrentVersionResponse)(results[0]));
 }
Exemple #7
0
 /// <remarks/>
 public void GetCurrentVersionAsync(GetCurrentVersionRequest request)
 {
     this.GetCurrentVersionAsync(request, null);
 }