Example #1
0
        private void btnAddOrder_Click(object sender, RoutedEventArgs e)
        {
            AddOrder addOrder = new AddOrder(Convert.ToInt32(txtCustomerId.Text));

            addOrder.Show();
            this.Close();
        }
        private void AddOrder_Click(object sender, RoutedEventArgs e)
        {
            CustomerModel customer = ((FrameworkElement)sender).DataContext as CustomerModel;

            AddOrder addOrder = new AddOrder(customer.CustomerId);

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