Пример #1
0
        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();
        }
 public SuggetionOrderItemControl(GuestRequest gr, HostingUnit hu, OrderListPage olp)
 {
     try
     {
         InitializeComponent();
         guestRequest  = gr;
         hostingUnit   = hu;
         orderListPage = olp;
         GuestRequestPrivateNameLable.Content = guestRequest.PrivateName;
         GuestRequestFamilyNameLable.Content  = guestRequest.FamilyName;
         backgroundWorker1                     = new BackgroundWorker();
         backgroundWorker1.DoWork             += inviteAsync;
         backgroundWorker1.RunWorkerCompleted += onInviteComplate;
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }