private void btnCash_Click(object sender, RoutedEventArgs e)
        {
            if (cartItems.Count > 0)
            {
                CashCalcWindow ccw = new CashCalcWindow();
                ccw.CalcCompletedEvent += new CashCalcWindow.CalcCompletedEventHandler(CashCalcCompleted);
                ccw.cartList            = cartItems;


                //새창을 가운대로
                ccw.Owner = Application.Current.MainWindow; // We must also set the owner for this to work.
                ccw.WindowStartupLocation = WindowStartupLocation.CenterOwner;

                ccw.ShowDialog();
            }
            else
            {
                Common.PopupMessage("결제할 물건이 없습니다!");
            }
            txtTotalAmount.Focus();
        }
Beispiel #2
0
        private void btnCash_Click(object sender, RoutedEventArgs e)
        {

            if (cartItems.Count > 0)
            {
                CashCalcWindow ccw = new CashCalcWindow();
                ccw.CalcCompletedEvent += new CashCalcWindow.CalcCompletedEventHandler(CashCalcCompleted);
                ccw.cartList = cartItems;


                //새창을 가운대로
                ccw.Owner = Application.Current.MainWindow; // We must also set the owner for this to work.
                ccw.WindowStartupLocation = WindowStartupLocation.CenterOwner;

                ccw.ShowDialog();
            }
            else
            {
                Common.PopupMessage("결제할 물건이 없습니다!");
            }
            txtTotalAmount.Focus();
        }