public void ShowProperties()
        {
            CustomClass properties = new CustomClass();

            IEnumerable <FieldInfo> fields = typeof(DicomTags).GetFields().OrderBy(field => field.Name);
            int nonZeroFieldCount          = 0;

            Console.WriteLine(CurrentDicomImageViewControl.Name);
            foreach (FieldInfo fi in fields)
            {
                String propertyValue = this.CurrentDicomImageViewControl.GetPropertyValue(fi);

                if (propertyValue != null && propertyValue.Length != 0)
                {
                    nonZeroFieldCount++;
                    properties.Add(new CustomProperty(fi.Name, propertyValue, true, true));
                }
            }

            if (CommonModule.TEST_MODE)
            {
                FDicomProperties dicomPropertiesFormNotModal = new FDicomProperties();
                dicomPropertiesFormNotModal.setMyProperties(properties);
                dicomPropertiesFormNotModal.Show();
            }
            else
            {
                dicomPropertiesForm.setMyProperties(properties);
                dicomPropertiesForm.ShowDialog();
            }
        }
        /// <summary>Создает объект ImageViewerManager
        /// <param name="containerControl">Элемент(тип ContainerControl) для обработки и событий клавиатуры</param>
        /// <param name="layoutControl">Элемент(тип Control) в которой размещается сетка</param>
        public ImageViewerManager(ContainerControl containerControl, Control layoutControl)
        {
            this.ContainerControl = containerControl;
            this.LayoutControl    = layoutControl;

            this.folderBrowserDialog2        = new System.Windows.Forms.FolderBrowserDialog();
            this.saveFileDialogExportCurrent = new System.Windows.Forms.SaveFileDialog();
            this.colorDialog1 = new System.Windows.Forms.ColorDialog();

            this.annotateTextForm    = new FAnnotateText();
            this.dicomPropertiesForm = new FDicomProperties();

            this.saveFileDialogExportCurrent.Filter = "jpg (*.jpg)|*.jpg|bmp (*.bmp)|*.bmp|png (*.png)|*.png";

            this.LayoutManager = new DicomImageViewer.Dicom.LayoutManager(LayoutControl, this.CreateLayoutControl, this);

            this.LayoutControl.SizeChanged += new System.EventHandler(this.layoutPanel_SizeChanged);

            this.LayoutControl.DragEnter += new DragEventHandler(this.layoutPanel_DragEnter);

            this.ContainerControl.KeyDown += new KeyEventHandler(this.container_KeyDown);

            this.LayoutManager.ChangeLayout();

            bgrwExport_Initialize();
            bgrwLoadSeries_Initialize();
            bgrwLoadStudy_Initialize();

            this.CurrentDicomImageViewControl = (DicomImageViewControl)this.LayoutManager.GetLayoutControl(1, 1);

            string path = DriveInfo.GetDrives().First(x => x.DriveType == DriveType.Fixed).Name;

            if (string.IsNullOrEmpty(Settings.Default.ExportPath))
            {
                Settings.Default.ExportPath = System.IO.Path.Combine(path, "export");
            }
            if (string.IsNullOrEmpty(Settings.Default.PublishPath))
            {
                Settings.Default.PublishPath = System.IO.Path.Combine(path, "publish");
            }

            this.ReferenceLineManager = new ReferenceLineManager(this);

            this.LocalizeManager = new LocalizeManager(this);
        }