public override void esMessage(int mhz, bool trx) { System.Diagnostics.Debug.WriteLine("MHz " + mhz.ToString()); if (trx != esTX) { esTX = trx; updateTX(); } WX0BController c = controllers.FirstOrDefault(x => x.config.esMHz == mhz); setActiveController(c == null ? -1 : controllers.IndexOf(c)); }
public WX0BControllerPanel(FWX0B _fWX0B, WX0BController _controller) { controller = _controller; fWX0B = _fWX0B; fWX0B.controllers.Add(controller); fWX0B.controllerPanels.Add(this); InitializeComponent(); updateIndex(); updateConnectionParamsCaption(); controller.jConnection.onConnected += сontrollerConnected; controller.jConnection.onDisconnected += controllerDisconnected; if (controller.config.esMHz != 0) { tbESMHz.Text = controller.config.esMHz.ToString(); } }