Ejemplo n.º 1
0
        private void UpdateButton_Click(object sender, RoutedEventArgs e)
        {
            Advertisement newAds = new Advertisement();

            newAds.AdvertisementID          = Int32.Parse(idText.Text);
            newAds.Deadline                 = AdsDeadline.SelectedDate.Value;
            newAds.AdvertisementDescription = advertisementDescriptionText.Text;
            newAds.AdvertisementStatus      = "Active";
            newAds.EmployeeID               = ActiveUserController.GetActiveEmployee().EmployeeID;
            AdvertisementController.UpdateAds(newAds);
            refreshTable();
        }