Exemplo n.º 1
0
 public DicomStorageProvider(INetworkStream stream, Encoding fallbackEncoding, Dicom.Log.Logger log)
     : base(stream, fallbackEncoding, log)
 {
     confManager   = new ConfManager(ConfigurationManager.AppSettings["ConfigFilePath"]);
     configuration = confManager.GetConfiguration();
     logger        = NLog.LogManager.GetCurrentClassLogger();
 }
 public AccessionNumberChanger()
 {
     logger      = LogManager.GetCurrentClassLogger();
     confManager = new ConfManager(ConfigurationManager.AppSettings["ConfigFilePath"]);
     config      = confManager.GetConfiguration();
     lastDay     = System.DateTime.Now;
 }
Exemplo n.º 3
0
 public ServicesMonitor()
 {
     logger      = LogManager.GetCurrentClassLogger();
     confManager = new ConfManager();
     config      = confManager.GetConfiguration();
     serviceMonitorController = new ServiceMonitorController(config);
     InitializeComponent();
 }
Exemplo n.º 4
0
        public DicomSCPSvc()
        {
            logger = LogManager.GetCurrentClassLogger();

            DicomFilesPath = ConfigurationManager.AppSettings["DicomStorePath"];
            logger.Debug($"save file path :{DicomFilesPath}");

            InitializeComponent();
            ConfManager   = new ConfManager(ConfigurationManager.AppSettings["ConfigFilePath"]);
            configuration = ConfManager.GetConfiguration();
            CheckFilesAndFolders();
        }
Exemplo n.º 5
0
        private void SetCounter(int num)
        {
            var res = MessageBox.Show($"Are you sure you want to set the counter to {num}? \r\n This Action Cannot be undone !!",
                                      "Caution !!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            int oldCounter = configuration.Counter;;

            if (res == DialogResult.Yes)
            {
                configuration.Counter = num;
                configManager.Save();
                configuration = configManager.GetConfiguration();
                MessageBox.Show($"Counter was reset it was :{oldCounter} now its {num}");
            }
        }
        /// <summary>
        /// This will reset all changes done when services were stopped effectevilly creatint a reapeating
        /// e-mail message every x minutes (
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MasterTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            ConfManager cnfman = new ConfManager();

            configuration = cnfman.GetConfiguration();
        }
Exemplo n.º 7
0
 private void LoadConfiguration(string filePath)
 {
     configManager = new ConfManager(filePath);
     configuration = configManager.GetConfiguration();
 }