Color event data.
상속: System.EventArgs
 /// <summary>
 /// Raises the TrackingColor event.
 /// </summary>
 /// <param name="e">An ColorEventArgs that contains the event data.</param>
 protected internal virtual void OnTrackingColor(ColorEventArgs e)
 {
     if (TrackingColor != null)
     {
         TrackingColor(this, e);
     }
 }
 /// <summary>
 /// Raises the SelectedColorChanged event.
 /// </summary>
 /// <param name="e">An ColorEventArgs that contains the event data.</param>
 protected virtual void OnSelectedColorChanged(ColorEventArgs e)
 {
     if (SelectedColorChanged != null)
     {
         SelectedColorChanged(this, e);
     }
 }
예제 #3
0
        private void ContextMenuSelectColor_SelectedColorChanged(object sender, ComponentFactory.Krypton.Toolkit.ColorEventArgs e)
        {
            SelectedColor      = e.Color;
            BtnColor.ForeColor = (AssistOperation.PerceivedBrightness(e.Color) > 130 ? Color.Black : Color.White);
            BtnColor.BackColor = e.Color;

            pen = new Pen(e.Color, PenWidth);
            if (currentshape == ShapesTypes.ShapeTypes.None)
            {
                BtnRect.PerformClick();
            }
        }
 private void ShadowValues_ColourChanged(object sender, ColorEventArgs e)
 {
     ReCalcBrushes();
 }
 private void OnColumnsTrackingColor(object sender, ColorEventArgs e)
 {
     OnTrackingColor(new ColorEventArgs(e.Color));
 }
 private void OnColumnsSelectedColorChanged(object sender, ColorEventArgs e)
 {
     SelectedColor = e.Color;
 }
 /// <summary>
 /// Raises the TrackingColor event.
 /// </summary>
 /// <param name="e">An ColorEventArgs that contains the event data.</param>
 protected virtual void OnTrackingColor(ColorEventArgs e)
 {
     if (TrackingColor != null)
         TrackingColor(this, e);
 }
 private void OnSelectedColorChanged(object sender, ColorEventArgs e)
 {
     _provider.ProviderNeedPaintDelegate(this, new NeedLayoutEventArgs(false));
 }
 private void OnSelectedColorChanged(object sender, ColorEventArgs e)
 {
     _provider.ProviderNeedPaintDelegate(this, new NeedLayoutEventArgs(false));
 }
 /// <summary>
 /// Raises the SelectedColorChanged event.
 /// </summary>
 /// <param name="e">An ColorEventArgs that contains the event data.</param>
 protected virtual void OnSelectedColorChanged(ColorEventArgs e)
 {
     if (SelectedColorChanged != null)
         SelectedColorChanged(this, e);
 }
 void itemForeColorColumns_SelectedColorChanged(object sender, ColorEventArgs e)
 {
     if (!locked && Diagram != null)
         Diagram.SetShapeForeColor(e.Color);
 }
 /// <summary>
 /// Raises the TrackingColor event.
 /// </summary>
 /// <param name="e">An ColorEventArgs that contains the event data.</param>
 protected internal virtual void OnTrackingColor(ColorEventArgs e)
 {
     TrackingColor?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the SelectedColorChanged event.
 /// </summary>
 /// <param name="e">An ColorEventArgs that contains the event data.</param>
 protected virtual void OnSelectedColorChanged(ColorEventArgs e)
 {
     SelectedColorChanged?.Invoke(this, e);
 }
 private void KColorBtnMax_SelectedColorChanged(object sender, ColorEventArgs e)
 {
     colMax = KColorBtnMax.SelectedColor;
     pictureBox1.Invalidate();
 }