public void RunView(SecurityOptionsView view, AdvancedSettings settings) { DicomSecurityOptions clonedOptions; _view = view; _settings = settings; if (ServiceLocator.IsRegistered <IDicomSecurity>()) { _dicomSecurityAgent = ServiceLocator.Retrieve <IDicomSecurity>(); } try { _options = OnReadSecurityOptions(); if (_options == null) { _options = new DicomSecurityOptions(); OnWriteSecurityOptions(_options); } } catch (Exception e) { Logger.Global.Exception("DICOM Security", e); if (_options == null) { _options = new DicomSecurityOptions(); } } clonedOptions = _options.Clone <DicomSecurityOptions>(); _view.Initialize(clonedOptions); _view.Enabled = true; _view.SettingsChanged += new EventHandler(View_SettingsChanged); }
public void RunView(SecurityOptionsView view) { RunView(view, null); }