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;
            }
        }