Exemplo n.º 1
0
        private void SaveDataset( )
        {
            try
            {
                if (DialogResult.OK == LogsSaveFileDialog.ShowDialog( ))
                {
                    switch (LogsSaveFileDialog.FilterIndex)
                    {
                    case Constants.FilterIndexes.DCM:
                    {
                        __DICOMDataset.Save(LogsSaveFileDialog.FileName, DicomDataSetSaveFlags.None);
                    }

                    break;

                    default:
                    {
                        rchtxtDatasetView.SaveFile(LogsSaveFileDialog.FileName,
                                                   RichTextBoxStreamType.PlainText);
                    }

                    break;
                    }
                }
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.Assert(false);

                throw exception;
            }
        }
Exemplo n.º 2
0
        private void ExportDICOMServerSelectedLogs( )
        {
            try
            {
                if (DialogResult.OK == LogsSaveFileDialog.ShowDialog( ))
                {
                    Cursor.Current = Cursors.WaitCursor;

                    __DICOMServerViewController.ExportSelected(LogsSaveFileDialog.FileName);
                }
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.Assert(false);

                throw exception;
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }