Example #1
0
 public BombaJobEventArgs(bool ise, string eMsg, string xml, AppSettings.ServiceOp sOp)
 {
     this.isError = ise;
     this.errorMessage = eMsg;
     this.xmlContent = xml;
     this.serviceOp = sOp;
 }
Example #2
0
 public NeologEventArgs(bool ise, string eMsg, string xml, AppSettings.ServiceOp sOp)
 {
     this.isError      = ise;
     this.errorMessage = eMsg;
     this.xmlContent   = xml;
     this.serviceOp    = sOp;
 }
Example #3
0
 public BombaJobEventArgs(bool ise, string eMsg, string xml)
 {
     this.isError = ise;
     this.errorMessage = eMsg;
     this.xmlContent = xml;
     this.serviceOp = 0;
 }
Example #4
0
 public void DoSearch(string keyword, int freelance)
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpSearch;
     Dictionary<string, string> postArray = new Dictionary<string, string>();
     postArray.Add("keyword", keyword);
     postArray.Add("freelance", "" + freelance);
     this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=searchOffers", postArray);
 }
Example #5
0
 public void DoSearch(string searchKeyword)
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpSearch;
     Dictionary<string, string> postParams = new Dictionary<string, string>();
     postParams.Add("keyword", searchKeyword);
     this.currentOp = AppSettings.ServiceOp.ServiceOpSearch;
     this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=searchOffers", postParams);
 }
Example #6
0
        public void downloadURL(string url, bool inBackground, AppSettings.ServiceOp serviceOp)
        {
            this.InBackground = inBackground;
            this.webServiceOp = serviceOp;

            if (this.hasConnection())
                this.webClient.DownloadStringAsync(new System.Uri(url));
            else
                this.DownloadError(this, new BombaJobEventArgs(true, Properties.Resources.error_NoInternet, ""));
        }
Example #7
0
        public void downloadURL(string url, bool inBackground, AppSettings.ServiceOp serviceOp)
        {
            this.InBackground = inBackground;
            this.webServiceOp = serviceOp;

            if (this.hasConnection())
                this.webClient.DownloadStringAsync(new System.Uri(url));
            else
            {
                Deployment.Current.Dispatcher.BeginInvoke(() =>
                {
                    DownloadError(this, new NeologEventArgs(true, AppResources.error_NoInternet, ""));
                });
            }
        }
Example #8
0
        public void downloadURL(string url, bool inBackground, AppSettings.ServiceOp serviceOp)
        {
            this.InBackground = inBackground;
            this.webServiceOp = serviceOp;

            if (this.hasConnection())
            {
                this.webClient.DownloadStringAsync(new System.Uri(url));
            }
            else
            {
                Deployment.Current.Dispatcher.BeginInvoke(() =>
                {
                    DownloadError(this, new NeologEventArgs(true, AppResources.error_NoInternet, ""));
                });
            }
        }
Example #9
0
 void _networkHelper_DownloadInBackgroundComplete(object sender, NeologEventArgs e)
 {
     if (!e.IsError)
     {
         if (this.wordId > 0)
         {
             this.currentOp = AppSettings.ServiceOp.ServiceOpWordComments;
         }
         else
         {
             this.currentOp = AppSettings.ServiceOp.ServiceOpWords;
         }
         if (e.ServiceOp > 0)
         {
             this.currentOp = e.ServiceOp;
         }
         this.dispatchDownload(e.XmlContent);
     }
 }
Example #10
0
 private void syncNewestOffers()
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpNewestOffers;
     this.bgWorker = new BackgroundWorker();
     RunProcess();
 }
Example #11
0
 public void DoSendComment(Dictionary <string, string> postParams)
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpSendComment;
     this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=SendComment", postParams);
 }
Example #12
0
 public void DoSendPM(Dictionary<string, string> postParams)
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpSendEmail;
     this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=postMessage", postParams);
 }
Example #13
0
 void _networkHelper_DownloadInBackgroundComplete(object sender, NeologEventArgs e)
 {
     if (!e.IsError)
     {
         if (this.wordId > 0)
             this.currentOp = AppSettings.ServiceOp.ServiceOpWordComments;
         else
             this.currentOp = AppSettings.ServiceOp.ServiceOpWords;
         if (e.ServiceOp > 0)
             this.currentOp = e.ServiceOp;
         this.dispatchDownload(e.XmlContent);
     }
 }
Example #14
0
 public void DoSendWord(Dictionary<string, string> postParams)
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpSendWord;
     this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=SendWord", postParams);
 }
Example #15
0
 public void DoPostOffer(Dictionary<string, string> postParams)
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpPost;
     this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=postNewJob", postParams);
 }
Example #16
0
 void _networkHelper_DownloadInBackgroundComplete(object sender, BombaJobEventArgs e)
 {
     if (!e.IsError)
     {
         if (e.ServiceOp > 0)
             this.currentOp = e.ServiceOp;
         this.dispatchDownload(e.XmlContent);
     }
 }
Example #17
0
 public void LoadOffersInBackground()
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpJobs;
     this.bgWorker = new BackgroundWorker();
     RunProcess();
 }
Example #18
0
 private void syncTexts()
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpTexts;
     this.bgWorker = new BackgroundWorker();
     RunProcess();
 }
Example #19
0
 private void syncNests()
 {
     this.currentOp = AppSettings.ServiceOp.ServiceOpNests;
     this.bgWorker  = new BackgroundWorker();
     RunProcess();
 }