예제 #1
0
        //METODY
        public Session(string webAPIKey, int countryId)
        {
            allegroService = new AllegroWebApiService();

            this.countryId = countryId;
            this.webAPIKey = webAPIKey;

            allegroService.doQuerySysStatus(3, countryId, webAPIKey, out localVersion);//pobieranie versionKey
        }
예제 #2
0
        public long GetLocalVersionKey(AllegroWebApiService service)
        {
            long version = 0;

            try
            {
                var info = service.doQuerySysStatus(1, 1, apiKey, out version);
                //Shower.Items.Add("Kod wersji: " + version);
            }
            catch
            {
                MessageBoxResult wrongResult = MessageBox.Show("Zgubiłem klucz wersji. Zrestartuj mnie!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            return(version);
        }