Exemple #1
0
        // Methods
        private void SetLogger()
        {
            if (bundle == null)
            {
                return;
            }

            switch (logFormat)
            {
            case LogFormat.CSV:
                Logger = bundle.CSVLogger;
                break;

            case LogFormat.XLSX:
                Logger = bundle.XLSXLogger;
                break;

            case LogFormat.XML:
                Logger = bundle.XMLLogger;
                break;

            case LogFormat.UDP:
                Logger = bundle.UDPLogger;
                break;
            }
        }
Exemple #2
0
 private void Cardia_LoggerChanged(object sender, IHRMLogger arg)
 {
     if (arg is IHRMNetLogger)
     {
         tbIpAddress.Text = ((IHRMNetLogger)arg).Address;
         nudPort.Value    = ((IHRMNetLogger)arg).Port;
     }
     else if (arg is IHRMFileLogger)
     {
         tbLogFile.Text = ((IHRMFileLogger)arg).FileName;
     }
 }