Exemple #1
0
 public void button_ColorChanged(object sender, ColorChangeArgs e)
 {
     if (ColorChanged != null)
     {
         ColorChanged(this, e);
     }
 }
Exemple #2
0
 //event handler for the color change event from the popup window
 //simply relay the event to the parent control
 protected void OnColorChanged(object sender, ColorChangeArgs e)
 {
     //if a someone wants the event, and the color has actually changed
     //call the event handler
     if (ColorChanged != null && e.color != this.selectedColor)
     {
         this.selectedColor = e.color;
         ColorChanged(this, e);
     }
     else //otherwise simply make note of the new color
     {
         this.selectedColor = e.color;
     }
 }
Exemple #3
0
 public void button_ColorChanged(object sender, ColorChangeArgs e)
 {
     if (ColorChanged != null)
     {
         ColorChanged(this, e);
     }
 }
Exemple #4
0
 //event handler for the color change event from the popup window
 //simply relay the event to the parent control
 protected void OnColorChanged(object sender, ColorChangeArgs e)
 {
     //if a someone wants the event, and the color has actually changed
     //call the event handler
     if (ColorChanged != null && e.color != this.selectedColor)
     {
         this.selectedColor = e.color;
         ColorChanged(this, e);
     }
     else //otherwise simply make note of the new color
     {
         this.selectedColor = e.color;
     }
 }