/// <summary> /// 拍照 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnTakePhoto_Click(object sender, RoutedEventArgs e) { Order order = dgShareFolder.SelectedItem as Order; ShareFolderModule shareOrder = new ShareFolderModule { Order = order }; App.CurrentWindow.brMain.Child = shareOrder; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnTakePhoto_Click(object sender, RoutedEventArgs e) { Order order = dgShareFolder.SelectedItem as Order; if (order == null) { } if (!CommonHelper.UserControls.ContainsKey("ShareFolderOrder")) { ShareFolderModule shareFolderOrder = new ShareFolderModule(order); CommonHelper.MainWindow.brMain.Child = shareFolderOrder; CommonHelper.UserControls.Add("ShareFolderOrder", shareFolderOrder); } else { CommonHelper.MainWindow.brMain.Child = CommonHelper.UserControls["ShareFolderOrder"]; } }