public SIOListenerII(Console c) { console = c; console.Activated += new EventHandler(console_Activated); console.Closing += new System.ComponentModel.CancelEventHandler(console_Closing); parser = new CATParser(console); //event handler for Serial RX Events SDRSerialPort.serial_rx_event += new SerialRXEventHandler(SerialRXEventHandler); if ( console.CATEnabled ) // if CAT is on, fire it up { try { enableCAT(); } catch ( Exception ex ) { // fixme??? how cool is to to pop a msg box from an exception handler in a constructor ?? // seems ugly to me (wjt) console.CATEnabled = false; if ( console.setupForm != null ) { console.setupForm.copyCATPropsToDialogVars(); // need to make sure the props on the setup page get reset } MessageBox.Show("Could not initialize CAT control. Exception was:\n\n " + ex.Message + "\n\nCAT control has been disabled.", "Error Initializing CAT control", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
public SIOListenerII(Console c) { console = c; console.Activated += new EventHandler(console_Activated); console.Closing += new System.ComponentModel.CancelEventHandler(console_Closing); parser = new CATParser(console); //event handler for Serial RX Events SDRSerialSupportII.SDRSerialPort.serial_rx_event += new SDRSerialSupportII.SerialRXEventHandler(SerialRXEventHandler); if (console.CATEnabled) // if CAT is on fire it up { try { enableCAT(); } catch (Exception ex) { // fixme??? how cool is to to pop a msg box from an exception handler in a constructor ?? // seems ugly to me (wjt) console.CATEnabled = false; if (console.SetupForm != null) { console.SetupForm.copyCATPropsToDialogVars(); // need to make sure the props on the setup page get reset } MessageBox.Show("Could not initialize CAT control. Exception was:\n\n " + ex.Message + "\n\nCAT control has been disabled.", "Error Initializing CAT control", MessageBoxButtons.OK, MessageBoxIcon.Error); } } SIOMonitor = new System.Timers.Timer(); SIOMonitor.Elapsed += new System.Timers.ElapsedEventHandler(SIOMonitor_Elapsed); }
public CATTester(Console c) { // // Required for Windows Form Designer support // InitializeComponent(); console = c; parser = new CATParser(console); ds = new DataSet(); Setup(); }
public RemoteProfiles(Console c) { // // Required for Windows Form Designer support // InitializeComponent(); console = c; parser = new CATParser(console); model = console.CurrentModel.ToString().ToLower(); if(model.StartsWith("s")) this.Text = "Remote Profiles for an "+model.ToUpper(); else this.Text = "Remote Profiles for a "+model.ToUpper(); }
public RemoteProfiles(Console c) { // // Required for Windows Form Designer support // InitializeComponent(); console = c; parser = new CATParser(console); model = console.CurrentModel.ToString().ToLower(); if (model.StartsWith("s")) { this.Text = "Remote Profiles for an " + model.ToUpper(); } else { this.Text = "Remote Profiles for a " + model.ToUpper(); } }
public SIOListenerII(Console c) { console = c; console.Closing += new System.ComponentModel.CancelEventHandler(console_Closing); parser = new CATParser(console); //event handler for Serial RX Events SDRSerialSupportII.SDRSerialPort.serial_rx_event += new SDRSerialSupportII.SerialRXEventHandler(SerialRXEventHandler); if ( console.CATEnabled ) // if CAT is on fire it up { try { enableCAT(); } catch ( Exception ex ) { // fixme??? how cool is to to pop a msg box from an exception handler in a constructor ?? // seems ugly to me (wjt) console.CATEnabled = false; if ( console.SetupForm != null ) { console.SetupForm.copyCATPropsToDialogVars(); // need to make sure the props on the setup page get reset } MessageBox.Show("Could not initialize CAT control. Exception was:\n\n " + ex.Message + "\n\nCAT control has been disabled.", "Error Initializing CAT control", MessageBoxButtons.OK, MessageBoxIcon.Error); } } SIOMonitor = new System.Timers.Timer(); SIOMonitor.Elapsed+=new System.Timers.ElapsedEventHandler(SIOMonitor_Elapsed); SIOMonitor.Interval = 5000; // 5s run_thread = true; send_thread = new Thread(new ThreadStart(SendThread)); send_thread.Name = "Serial send Process Thread "; send_thread.Priority = ThreadPriority.Normal; send_thread.IsBackground = true; send_thread.Start(); }
public CAToverEthernetClient(Console c) { try { console = c; parser = new CATParser(console); receive_buffer = new byte[2048]; send_buffer = new byte[2048]; send_event = new AutoResetEvent(false); //connect_event = new AutoResetEvent(false); send_mutex = new Mutex(); timeout_timer = new System.Windows.Forms.Timer(); timeout_timer.Tick += new System.EventHandler(SendEventTimerTick); timeout_timer.Enabled = true; } catch (Exception ex) { Debug.Write(ex.ToString()); if (debug && !console.ConsoleClosing) console.Invoke(new DebugCallbackFunction(console.DebugCallback), "Ethernet client constructor error!\n" + ex.ToString()); } }
public CAToverEthernetServer(Console c) { console = c; parser = new CATParser(console); receive_buffer1 = new byte[2048]; receive_buffer2 = new byte[2048]; server_event = new AutoResetEvent(false); ConnectionWatchdog = new System.Windows.Forms.Timer(); ConnectionWatchdog.Tick += new System.EventHandler(ServerWatchDogTimerTick); }
public CATCommands(Console c,CATParser p) { console = c; parser = p; MakeBandList(); }