Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            dataDisplayer   = new DataDisplayer(ReceivedMessageBox);
            deviceConnector = new DeviceConnector(dataDisplayer);
            programmer      = new AvrdudeProgrammer(new DataDisplayer(MonitorTextBox));

            foreach (String s in SerialPort.GetPortNames())
            {
                SerialPortsComboBox.Items.Add(s);
            }
            ConnectButton.IsEnabled = SerialPortsComboBox.HasItems;
        }
        public MainWindow()
        {
            InitializeComponent();
            dataDisplayer = new DataDisplayer(ReceivedMessageBox);
            deviceConnector = new DeviceConnector(dataDisplayer);
            programmer = new AvrdudeProgrammer(new DataDisplayer(MonitorTextBox));

            foreach (String s in SerialPort.GetPortNames())
            {
                SerialPortsComboBox.Items.Add(s);
            }
            ConnectButton.IsEnabled = SerialPortsComboBox.HasItems;
        }