Exemplo n.º 1
0
        private void Share_Click(object sender, EventArgs e)
        {
            //qitu u met me ndreq business mos me lan null
            Address a1 = new Address(cmbCity.SelectedItem.ToString(), txtStreet.Text, 10000);

            JobOfferService.AddOffer(new JobOffer(txtTitleOffer.Text, txtOfferDescription.Text,
                                                  new Business(LoggedData.LoggedBusiness.BusinessType, LoggedData.LoggedBusiness.BusinessCategory, LoggedData.LoggedBusiness.Name, "password", "password"), a1,
                                                  new Category(cmbCategory.SelectedItem.ToString())));
            MessageBox.Show("You Shared an Offer succesfuly");
        }