public void OnFirmwareLoaded(Firmware firmware) { m_firmware = firmware; Block1StringRadioButton.Enabled = true; Block1StringRadioButton.Checked = true; Block2StringRadioButton.Enabled = m_firmware.Block2Strings.Any(); Block2StringListBox.Fill(m_firmware.Block2Strings, false); Block1StringListBox.Fill(m_firmware.Block1Strings, false); }
public void OnFirmwareLoaded(Firmware firmware) { m_firmware = firmware; BlockTypeComboBox.Enabled = BlockTypeComboBox.Visible = firmware.Block2Strings.Any(); StringPreviewGroupPanel.Text = BlockTypeComboBox.Enabled ? "Preview using:" : "Preview:"; Block1StringRadioButton.Enabled = true; Block1StringRadioButton.Checked = true; Block2StringRadioButton.Enabled = m_firmware.Block2Strings.Any(); Block2StringListBox.Fill(m_firmware.Block2Strings, false); Block1StringListBox.Fill(m_firmware.Block1Strings, false); }