private void DoSubmitButton(object sender, RoutedEventArgs e) { RideCreationController.DoPrepareSafety(forceText.Text); RideCreationController.DoChangeRide(); CreativeHomePage creativeHomePage = new CreativeHomePage(); this.NavigationService.Navigate(creativeHomePage); MessageBox.Show("Ride Changed !"); }
private void DoDeleteRide(object sender, RoutedEventArgs e) { int id; Int32.TryParse(idText.Text, out id); RideCreationController.DoDeleteRide(id); CreativeHomePage creativeHomePage = new CreativeHomePage(); this.NavigationService.Navigate(creativeHomePage); MessageBox.Show("Delete Success !"); }
private void DoSendToManager(object sender, RoutedEventArgs e) { int id; Int32.TryParse(idText.Text, out id); ResponseController.DoRequestManager(id); MessageBox.Show("Request Success !"); CreativeHomePage creativeHomePage = new CreativeHomePage(); this.NavigationService.Navigate(creativeHomePage); }
private void DoChangeStatus(object sender, RoutedEventArgs e) { int id; Int32.TryParse(idText.Text, out id); ResponseController.DoChangeStatus(id); CreativeHomePage creativeHomePage = new CreativeHomePage(); this.NavigationService.Navigate(creativeHomePage); MessageBox.Show("Status Updated!"); }
private void DoSubmitButton(object sender, RoutedEventArgs e) { int durability, quantity; Int32.TryParse(durabilityBox.Text, out durability); Int32.TryParse(quantityBox.Text, out quantity); AttractionCreationController.DoInsertAttraction(attNameText.Text, durability, quantity, startDate.Text); CreativeHomePage creativeHomePage = new CreativeHomePage(); this.NavigationService.Navigate(creativeHomePage); MessageBox.Show("Attraction Planned !"); }
private void DoSendToConstructionDepartment(object sender, RoutedEventArgs e) { int id; Int32.TryParse(idText.Text, out id); if (ConnectionController.GetInstance().HeaderResponses.Where(x => x.ResponseStatus.Equals("Declined") && x.Id.Equals(id)).FirstOrDefault() != null) { MessageBox.Show("You can only sent Approved File!"); } else { ResponseController.DoSendToConstructionDepartment(id); MessageBox.Show("File Sent to Construction Department!"); } CreativeHomePage creativeHomePage = new CreativeHomePage(); this.NavigationService.Navigate(creativeHomePage); }