Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            this.department.ItemsSource     = ConnectToDB.GetDepartmentList();
            this.orderListBox.ItemsSource   = ConnectToDB.GetDepartmentList();
            this.sellerComboBox.ItemsSource = ConnectToDB.GetEmployeeList(1);
            this.ordersGrid.ItemsSource     = GetOrderListForTable();
        }
Exemplo n.º 2
0
        private void orderListBox_MouseUp(object sender, MouseButtonEventArgs e)
        {
            Department dept = ConnectToDB.GetDepartment(this.orderListBox.SelectedItem.ToString());

            this.leader.ItemsSource = ConnectToDB.GetEmployeeList(dept.Id);
        }