/// <summary>
        /// 拍照
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnTakePhoto_Click(object sender, RoutedEventArgs e)
        {
            Order           order     = dgSlimOrder.SelectedItem as Order;
            SlimOrderModule slimOrder = new SlimOrderModule {
                Order = order
            };

            App.CurrentWindow.brMain.Child = slimOrder;
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnTakePhoto_Click(object sender, RoutedEventArgs e)
        {
            Order order = dgSlimOrder.SelectedItem as Order;

            if (order == null)
            {
            }

            if (!CommonHelper.UserControls.ContainsKey("SlimOrder"))
            {
                SlimOrderModule slimOrderOrder = new SlimOrderModule(order);
                CommonHelper.MainWindow.brMain.Child = slimOrderOrder;
                CommonHelper.UserControls.Add("SlimOrder", slimOrderOrder);
            }
            else
            {
                CommonHelper.MainWindow.brMain.Child = CommonHelper.UserControls["SlimOrder"];
            }
        }