private void linkToOrderWindow_Click(object sender, RoutedEventArgs e)
        {
            OrderWindow orderWindow = new OrderWindow();

            orderWindow.Show();
            this.Close();
        }
Beispiel #2
0
        // Method    :
        // Description :
        //
        //
        //  Parameters  :
        //
        //  Returns     :
        //
        private void OrderPageWithCustomer(string branch, Customer customer)
        {
            OrderWindow orderWindow = new OrderWindow(branch, customer);

            orderWindow.Show();
            this.Close();
        }
        private void InsertButton_Click(object sender, RoutedEventArgs e)
        {
            OrderWindow orderWindow = new OrderWindow();

            orderWindow.LogTextBlock.Text = this.LogTextBlock.Text;
            orderWindow.Show();
        }
        // Method    :
        // Description :
        //
        //
        //  Parameters  :
        //
        //  Returns     :
        //
        private void OrderPageWithCustomer(string branch, Customer customer)
        {
            customerViewModel.UpdateNewCustomer(customer);
            OrderWindow orderWindow = new OrderWindow(branch, customer);

            orderWindow.Show();
            this.Close();
        }
Beispiel #5
0
 private void _mainViewModel_OrdersTab(object sender, EventArgs e)
 {
     _orderWindow = new OrderWindow
     {
         DataContext = _mainViewModel
     };
     _orderWindow.Show();
 }
 private void Checkout_Click(object sender, RoutedEventArgs e)
 {
     if (order.IsActive == false)
     {
         order = new OrderWindow();
         order.Show();
     }
     else
     {
         order.Show();
     }
 }
Beispiel #7
0
        /// <summary>
        /// 订单管理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsbOrder_Click(object sender, EventArgs e)
        {
            if (null == orderWindow || orderWindow.IsDisposed)
            {
                orderWindow            = new OrderWindow();
                orderWindow.MdiParent  = this;
                orderWindow.StartLoad += (obj, ev) =>
                {
                    StartLoad(obj);
                };
                orderWindow.StopLoad += (obj, ev) =>
                {
                    StopLoad(obj);
                };


                orderWindow.Show();
            }

            SetSelect(tsbOrder, tsmiOrder);
            orderWindow.Activate();
        }
Beispiel #8
0
        private void miOrder_Click(object sender, RoutedEventArgs e)
        {
            OrderWindow window = new OrderWindow();

            window.Show();
        }
Beispiel #9
0
 private void OpenOrderWindow()
 {
     _orderWindowViewModel = new OrderWindowViewModel();
     _orderWindow          = new OrderWindow(_orderWindowViewModel);
     _orderWindow.Show();
 }
Beispiel #10
0
        private void OrderButton_Click(object sender, RoutedEventArgs e)
        {
            OrderWindow ow = new OrderWindow();

            ow.Show();
        }