예제 #1
0
        private void btnCancelEditOrder_Click(object sender, RoutedEventArgs e)
        {
            var oowindow = new OrdersPage();

            oowindow.Show();
            this.Close();
        }
예제 #2
0
        private void btnAddOrder_Click(object sender, RoutedEventArgs e)
        {
            int      osupplierid = Convert.ToInt16(tbxSupplierID.Text);
            int      oproductid  = Convert.ToInt16(tbxProductID.Text);
            DateTime odate       = Convert.ToDateTime(tbxDateOrdered.SelectedDate);
            int      oquantity   = Convert.ToInt16(tbxQuantityOrdered.Text);

            ViewModelLocator.OrderViewModel.AddOrder(osupplierid, oproductid, odate, oquantity);
            ViewModelLocator.OrderViewModel.CreateOrderList();

            var oowindow = new OrdersPage();

            oowindow.Show();
            this.Close();
        }