Exemplo n.º 1
0
 /// <summary>
 /// Called when the color changed.
 /// </summary>
 void _editorColorChanged(object sender, CadKit.Color.ColorChangedEventArgs args)
 {
     try
     {
         CadKit.Interfaces.IClearColor color = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.IClearColor;
         if (null != color)
         {
             color.ClearColor = args.Color;
             System.Windows.Forms.Control control = color as System.Windows.Forms.Control;
             if (null != control)
             {
                 control.Invalidate(true);
             }
         }
     }
     catch (System.Exception e)
     {
         System.Console.WriteLine("Error 3571950654: {0}", e.Message);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called when the color changes.
 /// </summary>
 private void _colorChanged(object sender, CadKit.Color.ColorChangedEventArgs e)
 {
     this.BackColor = e.Color;
     this.Invalidate();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Called when the color is done changing.
 /// </summary>
 void _colorDoneChanging(object sender, CadKit.Color.ColorChangedEventArgs e)
 {
     this._updatePropertyGrid();
 }