예제 #1
0
        public void Initialize(ISharpControl control)
        {
            _control    = control;
            _serialPort = new SerialPortCtrl();
            _serialPort.OnFrequencyChange += UpdateFrequency;

            _controlPanel = new SerialControllerPanel(_serialPort);
            _controlPanel.readSettings();
        }
 public void Initialize(ISharpControl control)
 {
     _control = control;
     _control.PropertyChanged += PropertyChangedHandler;
     _LastRadioFrequency       = _control.Frequency;
     _LastRadioMode            = _control.DetectorType;
     _Protocol     = new Protocol_TS50(this);
     _serialPort   = new SerialPortCtrl(_Protocol);
     _controlPanel = new SerialControllerPanel(_serialPort);
     _controlPanel.readSettings();
 }