/// <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); } }
/// <summary> /// Called when the color changes. /// </summary> private void _colorChanged(object sender, CadKit.Color.ColorChangedEventArgs e) { this.BackColor = e.Color; this.Invalidate(); }
/// <summary> /// Called when the color is done changing. /// </summary> void _colorDoneChanging(object sender, CadKit.Color.ColorChangedEventArgs e) { this._updatePropertyGrid(); }