Exemplo n.º 1
0
 /// <remarks/>
 public void AddJobOfferAsync(string username, string password, JobOffer offer, object userState)
 {
     if ((this.AddJobOfferOperationCompleted == null))
     {
         this.AddJobOfferOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddJobOfferOperationCompleted);
     }
     this.InvokeAsync("AddJobOffer", new object[] {
         username,
         password,
         offer
     }, this.AddJobOfferOperationCompleted, userState);
 }
Exemplo n.º 2
0
        protected void InsertJob(object sender, EventArgs e)
        {
            JobsWS.JobsWS   proxy = new JobsWS.JobsWS();
            JobsWS.JobOffer offer = new JobsWS.JobOffer();
            offer.Phone    = PhoneNumberText.Text;
            offer.Company  = CompanyText.Text;
            offer.Position = Position.Text;
            bool inserted = proxy.AddJobOffer((string)Session["JobUser"], (string)Session["JobPass"], offer);

            if (inserted)
            {
                Response.Redirect("JobsPage.aspx");
            }
            else
            {
                jobErrorMsg2.Visible = true;
            }
        }
Exemplo n.º 3
0
 /// <remarks/>
 public void AddJobOfferAsync(string username, string password, JobOffer offer)
 {
     this.AddJobOfferAsync(username, password, offer, null);
 }