public GuestRequestInfoPage(int key) { Gkey = key; InitializeComponent(); ImpBL bl = ImpBL.Instance; infoTextBlock.Text = bl.GetGuestRequest(Gkey).ToString(); }
public MyOrderItemControl(Order order, OrderListPage olp) { InitializeComponent(); m_order = order; orderListPage = olp; OrderIdLable.Content = "#" + order.OrderKey; ImpBL bl = ImpBL.Instance; var gr = bl.GetGuestRequest(order.GuestRequestKey); OrderFirstName.Content = gr.PrivateName; OrderLastName1.Content = gr.FamilyName; OrderStatusComboBox.ItemsSource = Enum.GetNames(typeof(OrderStatus)).ToList(); OrderStatusComboBox.SelectedValue = order.Status.ToString(); }
private void DeleteHostingUnitBtn_Click(object sender, RoutedEventArgs e) { try { ImpBL bl = ImpBL.Instance; int GuestRequestKey = int.Parse(GuestRequestKeyLable.Content.ToString().Substring(1)); bl.DeleteRequest(bl.GetGuestRequest(GuestRequestKey)); UserControlContainer.Visibility = Visibility.Collapsed; } catch (Exception err) { MessageBox.Show(err.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }