Ejemplo n.º 1
0
        private void serialPortTestMenuItem_Click(object sender, RoutedEventArgs e)
        {
            if (_comTransmissionWindow == null || !_comTransmissionWindow.IsVisible)
            {
                _comTransmissionWindow       = new TransmissionTestWindow();
                _comTransmissionWindow.Owner = this;
                _comTransmissionWindow.Title = "COM transmission test";
                var sendHelper = new SendHelper(_serialCommunicator);
                _comTransmissionWindow.SendDataRequest += sendHelper.Send;
                _comTransmissionWindow.Show();
            }

            _comTransmissionWindow.Focus();
        }
Ejemplo n.º 2
0
        private void lanTestMenuItem_Click(object sender, RoutedEventArgs e)
        {
            if (_lanTransmissionWindow == null || !_lanTransmissionWindow.IsVisible)
            {
                _lanTransmissionWindow       = new TransmissionTestWindow();
                _lanTransmissionWindow.Owner = this;
                _lanTransmissionWindow.Title = "LAN transmission test";
                var sendHelper = new SendHelper(_udpCommunicator);
                _lanTransmissionWindow.SendDataRequest += sendHelper.Send;
                _lanTransmissionWindow.Show();
            }

            _lanTransmissionWindow.Focus();
        }