private void server_MessageReceived(object sender, OpenWebNetDataEventArgs e) { string[] values; if (string.IsNullOrEmpty(e.Data)) { return; } App.logger.Debug(string.Format("Received: {0}", e.Data)); values = Utilities.GetPowerManagementValues(e.Data); if (values == null || values.Length < 4) { App.logger.Debug("Parsing...no values"); return; } this.Dispatcher.Invoke(updateUI, DispatcherPriority.Normal, (object)values); }
private void gateway_DataReceived(object sender, OpenWebNetDataEventArgs e) { logger.Debug(string.Format("Data received: {0}", e.Data)); this.Invoke(updateRes, e.Data); }
private void command_DataReceived(object sender, OpenWebNetDataEventArgs e) { this.Invoke(commandUpdateRes, e.Data); }
private void monitor_DataReceived(object sender, OpenWebNetDataEventArgs e) { this.Invoke(monitorUpdateRes, e.Data); }