public void Configure(System.Windows.Forms.IWin32Window Parent, Dicom.AddIn.Common.ServerSettings Settings, string ServerDirectory) { try { JobsCleanupConfigurationViewProxy _CleanupProxy = new JobsCleanupConfigurationViewProxy(ServerDirectory, Settings.ServiceName); _configForm = new ConfigurationDialog(); _configForm.CleanupProxy = _CleanupProxy; _configForm.ShowDialog(Parent); } catch (System.Exception ex) { } }
public void LoadSettings() { try { JobsCleanupConfigurationViewProxy proxy = new JobsCleanupConfigurationViewProxy(JobsCleanupSession.ServiceDirectory, JobsCleanupSession.ServiceName); _bEnabled = proxy.Enable; _UpdateInterval = proxy.GetCheckIntervalTimeSpan(); _Expiry = proxy.GetExpiryIntervalTimeSpan(); _MaxRetries = proxy.MaxRetry; if (proxy.Run >= DateTime.Now - new TimeSpan(0, 0, 5)) { _FlagRunNow = true; } } catch { } }