private void InitializeControls() { DeviceNameTextBox.BackColor = Color.White; HardwareVersionTextBox.BackColor = Color.White; FirmwareVersionTextBox.BackColor = Color.White; DeviceNameTextBox.ReadOnly = true; HardwareVersionTextBox.ReadOnly = true; FirmwareVersionTextBox.ReadOnly = true; m_updater.DeviceConnected += DeviceConnected; m_updater.StartMonitoring(); Closing += (s, e) => m_updater.StopMonitoring(); OkButton.Click += OkButton_Click; }
private void InitializeControls() { DeviceNameTextBox.BackColor = Color.White; HardwareVersionTextBox.BackColor = Color.White; FirmwareVersionTextBox.BackColor = Color.White; BootModeTextBox.BackColor = Color.White; DeviceNameTextBox.ReadOnly = true; HardwareVersionTextBox.ReadOnly = true; FirmwareVersionTextBox.ReadOnly = true; BootModeTextBox.ReadOnly = true; m_updater.DeviceConnected += DeviceConnected; m_updater.StartMonitoring(); Closing += (s, e) => m_updater.StopMonitoring(); LogoButton.Click += LogoButton_Click; UpdateButton.Click += UpdateButton_Click; UpdateFromFileButton.Click += UpdateFromFileButton_Click; ResetDataflashButton.Click += ResetDataflashButton_Click; ReadDataflashButton.Click += ReadDataflashButton_Click; WriteDataflashButton.Click += WriteDataflashButton_Click; }