private void darkToolStripMenuItem_Click(object sender, EventArgs e) { ThemeHandler.theme = vis1.Properties.Resources.ThemeDark; ThemeHandler.ApplyTheme(this); ThemeHandler.ApplyMenu(this.menuStrip1.Items); lightToolStripMenuItem.Checked = false; darkToolStripMenuItem.Checked = true; }
public Settings() { InitializeComponent(); SettingsElements.m_enableButtonsSettings[0] = EnableCH1; SettingsElements.m_enableButtonsSettings[1] = EnableCH2; SettingsElements.m_enableButtonsSettings[2] = EnableCH3; SettingsElements.m_enableButtonsSettings[3] = EnableCH4; SettingsElements.m_enableButtonsSettings[4] = EnableCH5; SettingsElements.m_enableButtonsSettings[5] = EnableCH6; SettingsElements.m_enableButtonsSettings[6] = EnableCH7; SettingsElements.m_enableButtonsSettings[7] = EnableCH8; SettingsElements.m_enableButtonsSettings[8] = EnableCH9; SettingsElements.m_selectY1Settings[0] = SetY1CH1; SettingsElements.m_selectY1Settings[1] = SetY1CH2; SettingsElements.m_selectY1Settings[2] = SetY1CH3; SettingsElements.m_selectY1Settings[3] = SetY1CH4; SettingsElements.m_selectY1Settings[4] = SetY1CH5; SettingsElements.m_selectY1Settings[5] = SetY1CH6; SettingsElements.m_selectY1Settings[6] = SetY1CH7; SettingsElements.m_selectY1Settings[7] = SetY1CH8; SettingsElements.m_selectY1Settings[8] = SetY1CH9; SettingsElements.m_selectY2Settings[0] = SetY2CH1; SettingsElements.m_selectY2Settings[1] = SetY2CH2; SettingsElements.m_selectY2Settings[2] = SetY2CH3; SettingsElements.m_selectY2Settings[3] = SetY2CH4; SettingsElements.m_selectY2Settings[4] = SetY2CH5; SettingsElements.m_selectY2Settings[5] = SetY2CH6; SettingsElements.m_selectY2Settings[6] = SetY2CH7; SettingsElements.m_selectY2Settings[7] = SetY2CH8; SettingsElements.m_selectY2Settings[8] = SetY2CH9; SettingsElements.m_channelNameLabelsSettings[0] = SetNameCH1; SettingsElements.m_channelNameLabelsSettings[1] = SetNameCH2; SettingsElements.m_channelNameLabelsSettings[2] = SetNameCH3; SettingsElements.m_channelNameLabelsSettings[3] = SetNameCH4; SettingsElements.m_channelNameLabelsSettings[4] = SetNameCH5; SettingsElements.m_channelNameLabelsSettings[5] = SetNameCH6; SettingsElements.m_channelNameLabelsSettings[6] = SetNameCH7; SettingsElements.m_channelNameLabelsSettings[7] = SetNameCH8; SettingsElements.m_channelNameLabelsSettings[8] = SetNameCH9; SettingsElements.m_axisValuesSettings[0] = SetMinX; SettingsElements.m_axisValuesSettings[1] = SetMaxX; SettingsElements.m_axisValuesSettings[2] = SetMinY1; SettingsElements.m_axisValuesSettings[3] = SetMaxY1; SettingsElements.m_axisValuesSettings[4] = SetMinY2; SettingsElements.m_axisValuesSettings[5] = SetMaxY2; LoadSettings(); ThemeHandler.ApplyTheme(this); }
public ChooseCom() { InitializeComponent(); selectBAUD.SelectedIndex = 2; selectDataBits.SelectedIndex = 4; selectParity.SelectedIndex = 0; selectStopBits.SelectedIndex = 0; SetPorts(); ThemeHandler.ApplyTheme(this); }
public SelectSrc() { AcceptButton = buttonCOM; InitializeComponent(); ThemeHandler.ApplyTheme(this); }
public SelectTCPIP() { InitializeComponent(); AcceptButton = buttonOK; ThemeHandler.ApplyTheme(this); }
public About() { InitializeComponent(); ThemeHandler.ApplyTheme(this); this.version.Text = "Version: " + vis1.Properties.Resources.Versionsnummer; }