// 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; } }
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; } }