Esempio n. 1
0
        public CreateOrderWindow(OrdersWindow ordersWindow, User user)
        {
            InitializeComponent();

            this.user         = user;
            this.ordersWindow = ordersWindow;

            WebserviceObject wsObj = WebserviceCalls.GetCustomers();

            List <Customer> customersList = new List <Customer>();

            if (wsObj.Success)
            {
                foreach (Customer obj in (List <object>)wsObj.Response)
                {
                    customersList.Add(obj);
                }

                this.customersList = customersList;
            }
            else
            {
                MessageBox.Show(wsObj.Response.ToString());
            }

            List <string> names = customersList.Select(x => x.Name).ToList();

            cbbCustomers.ItemsSource = names;
        }
Esempio n. 2
0
        public AdministrateRolesWindow(OrdersWindow ordersWindow, Order order, User user)
        {
            InitializeComponent();

            this.ordersWindow = ordersWindow;
            this.order = order;
            this.user = user;

            GetOrderRoles();
        }
Esempio n. 3
0
        /***********************************************************************/
        // ORDERS
        /***********************************************************************/
        #region Orders

        /***********************************************************/
        // More icon besides Order ID textbox click
        /***********************************************************/
        private void btnOrders_Click(object sender, RoutedEventArgs e)
        {
            OrdersWindow ordersWindow = new OrdersWindow(this, user);

            ordersWindow.ShowDialog();
        }