Inheritance: HttpBaseTask
Ejemplo n.º 1
0
 private void HideLoading()
 {
     this.IsLoading = false;
     this.IsLoaded = true;
     this._currentPostTask = null;
 }
Ejemplo n.º 2
0
        public void Send()
        {
            if (this._currentPostTask != null)
            {
                return; // don't post the 2nd time
            }

            if (!this.ValidateAll())
            {
                return;
            }

            string url = this._urlBuilder.BuildAddPostUrl(this.BoardName);
            var parameters = this.CreatePostParameters();

            this._currentPostTask = new HttpPostTask(url, parameters, this.OnPostCompleted);
            this._currentPostTask.OnError = this.OnPostError;

            this.ShowLoading();
            this._currentPostTask.Execute();
        }