public override void Assign(RepositoryItem item) { BeginUpdate(); try { base.Assign(item); RepositoryItemCustomPictureEdit source = item as RepositoryItemCustomPictureEdit; if (source == null) { return; } HighlightFigureColor = source.HighlightFigureColor; ActiveFigureColor = source.ActiveFigureColor; } finally { EndUpdate(); } }
static CustomPictureEdit() { RepositoryItemCustomPictureEdit.RegisterCustomPictureEdit(); }