public void ContextMenuOpenDictation_Click(object sender, RoutedEventArgs args) { if (this.ListViewLocalDictation.SelectedItem != null) { YellowstonePathology.Business.FileListItem item = (YellowstonePathology.Business.FileListItem) this.ListViewLocalDictation.SelectedItem; YellowstonePathology.Business.FileList.OpenFile(item); } }
private void ContextMenuDictationToCaseFolder_Click(object sender, RoutedEventArgs e) { if (this.ListViewLocalDictation.SelectedItem != null) { YellowstonePathology.Business.FileListItem item = (YellowstonePathology.Business.FileListItem) this.ListViewLocalDictation.SelectedItem; YellowstonePathology.UI.Surgical.MoveDictationToCaseFolderPage moveDictationToCaseFolder = new MoveDictationToCaseFolderPage(item.FullPath); YellowstonePathology.UI.PageFunctionStartWindow pageFunctionStartWindow = new PageFunctionStartWindow(moveDictationToCaseFolder); pageFunctionStartWindow.ShowDialog(); } }
public void ContextMenuMoveServerFileToLocal_Click(object sender, RoutedEventArgs args) { this.Save(false); if (this.ListViewServerDictation.SelectedItem != null) { YellowstonePathology.Business.FileListItem item = (YellowstonePathology.Business.FileListItem) this.ListViewServerDictation.SelectedItem; this.m_ServerDictationList.MoveServerFileToLocal(item); this.m_ServerDictationList.Refresh(); this.m_LocalDictationList.Refresh(); } }
public void ContextMenuMoveLocalFileToDone_Click(object sender, RoutedEventArgs args) { this.Save(false); MessageBoxResult result = MessageBox.Show("Move this dictation file to the done folder?", "Move Dictation", MessageBoxButton.OKCancel); if (result == MessageBoxResult.OK) { if (this.ListViewLocalDictation.SelectedItem != null) { YellowstonePathology.Business.FileListItem item = (YellowstonePathology.Business.FileListItem) this.ListViewLocalDictation.SelectedItem; this.m_LocalDictationList.MoveLocalFileToDone(item); this.m_LocalDictationList.Refresh(); } } }