public BombaJobEventArgs(bool ise, string eMsg, string xml, AppSettings.ServiceOp sOp) { this.isError = ise; this.errorMessage = eMsg; this.xmlContent = xml; this.serviceOp = sOp; }
public NeologEventArgs(bool ise, string eMsg, string xml, AppSettings.ServiceOp sOp) { this.isError = ise; this.errorMessage = eMsg; this.xmlContent = xml; this.serviceOp = sOp; }
public BombaJobEventArgs(bool ise, string eMsg, string xml) { this.isError = ise; this.errorMessage = eMsg; this.xmlContent = xml; this.serviceOp = 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); }
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); }
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, "")); }
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, "")); }); } }
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, "")); }); } }
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); } }
private void syncNewestOffers() { this.currentOp = AppSettings.ServiceOp.ServiceOpNewestOffers; this.bgWorker = new BackgroundWorker(); RunProcess(); }
public void DoSendComment(Dictionary <string, string> postParams) { this.currentOp = AppSettings.ServiceOp.ServiceOpSendComment; this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=SendComment", postParams); }
public void DoSendPM(Dictionary<string, string> postParams) { this.currentOp = AppSettings.ServiceOp.ServiceOpSendEmail; this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=postMessage", postParams); }
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); } }
public void DoSendWord(Dictionary<string, string> postParams) { this.currentOp = AppSettings.ServiceOp.ServiceOpSendWord; this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=SendWord", postParams); }
public void DoPostOffer(Dictionary<string, string> postParams) { this.currentOp = AppSettings.ServiceOp.ServiceOpPost; this._networkHelper.uploadURL(AppSettings.ServicesURL + "?action=postNewJob", postParams); }
void _networkHelper_DownloadInBackgroundComplete(object sender, BombaJobEventArgs e) { if (!e.IsError) { if (e.ServiceOp > 0) this.currentOp = e.ServiceOp; this.dispatchDownload(e.XmlContent); } }
public void LoadOffersInBackground() { this.currentOp = AppSettings.ServiceOp.ServiceOpJobs; this.bgWorker = new BackgroundWorker(); RunProcess(); }
private void syncTexts() { this.currentOp = AppSettings.ServiceOp.ServiceOpTexts; this.bgWorker = new BackgroundWorker(); RunProcess(); }
private void syncNests() { this.currentOp = AppSettings.ServiceOp.ServiceOpNests; this.bgWorker = new BackgroundWorker(); RunProcess(); }