private void RefreshMonitorConfigControl()
        {
            if (_monitorConfigControl != null)
            {
                RemoveMonitorConfigControl((Control)_monitorConfigControl);
                _monitorConfigControl = null;
            }

            CreateMonitorConfigControl(_monitorConfig);
        }
        private void CreateMonitorConfigControl(MonitorConfig monitorConfig)
        {
            switch (EnumUtil.Parse <STFMonitorType>(monitorConfig.MonitorType))
            {
            case STFMonitorType.DigitalSendNotification:
            case STFMonitorType.OutputDirectory:
            case STFMonitorType.OutputEmail:
            case STFMonitorType.LANFax:
            case STFMonitorType.SharePoint:
                _monitorConfigControl = new OutputMonitorConfigControl(monitorConfig);
                break;

            case STFMonitorType.Directory:
                _monitorConfigControl = new DirectoryMonitorConfigControl(monitorConfig);
                break;

            case STFMonitorType.DSSServer:
            case STFMonitorType.Hpcr:
            case STFMonitorType.EPrint:
                _monitorConfigControl = new DatabaseMonitorConfigControl(monitorConfig);
                break;

            default:
                _monitorConfigControl = new MonitorConfigControl(monitorConfig);
                break;
            }

            Control control         = (Control)_monitorConfigControl;
            Point   controlLocation = new Point(12, 90);
            int     formHeight      = control.Height + 160;

            control.Location = controlLocation;
            control.Anchor   = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;

            this.Controls.Add(control);
            this.Size = new Size(this.Width, formHeight);
        }