Exemplo n.º 1
0
 private void backColors_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (backColors.SelectedItem != null)
     {
         ColorDefinition def = backColors.SelectedItem as ColorDefinition;
         backColor.Text = ColorToString(def.color);
         test.BackColor = BackColor = def.color;
         Invalidate(true);
     }
 }
Exemplo n.º 2
0
 private void colorList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (foreColors.SelectedItem != null)
     {
         ColorDefinition def = foreColors.SelectedItem as ColorDefinition;
         foreColor.Text = ColorToString(def.color);
         test.ForeColor = ForeColor = def.color;
         Invalidate(true);
     }
 }
Exemplo n.º 3
0
        private void backColors_DrawItem(object sender, DrawItemEventArgs e)
        {
            ColorDefinition def = backColors.Items[e.Index] as ColorDefinition;

            DrawItem(UI.passiveForeColor, def.color, def.name + " " + ColorToString(def.color), e);
        }
Exemplo n.º 4
0
        private void colorList_DrawItem(object sender, DrawItemEventArgs e)
        {
            ColorDefinition def = foreColors.Items[e.Index] as ColorDefinition;

            DrawItem(def.color, UI.passiveBackColor, def.name, e);
        }