Exemple #1
0
        private void panel_theme_Click(object sender, EventArgs e)
        {
            EDDTheme.Settings.CI ci = (EDDTheme.Settings.CI)(((Control)sender).Tag);        // tag carries the colour we want to edit

            if (_discoveryForm.theme.EditColor(ci))
            {
                _discoveryForm.ApplyTheme();
                UpdatePatchesEtc();
            }
        }
Exemple #2
0
        private void panel_theme_Click(object sender, EventArgs e)
        {
            EDDTheme.Settings.CI ci = (EDDTheme.Settings.CI)(((Control)sender).Tag);        // tag carries the colour we want to edit

            if (_discoveryForm.theme.EditColor(ci))
            {
                _discoveryForm.ApplyTheme(true);
                _discoveryForm.theme.SetComboBoxIndex(comboBoxTheme);                      // given the theme selected, set the combo box
                UpdatePatchesEtc();
            }
        }
Exemple #3
0
 private void SetPanel(Panel pn, string name, EDDTheme.Settings.CI ex)
 {
     toolTip1.SetToolTip(pn, name);        // assign tool tips and indicate which color to edit
     pn.Tag         = ex;
     pn.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panel_theme_Click);
 }
Exemple #4
0
 private void SetPanel(Panel pn, string name, EDDTheme.Settings.CI ex)
 {
     toolTip.SetToolTip(pn, name);        // assign tool tips and indicate which color to edit
     pn.Tag = ex;
 }