// Override the Assign method public override void Assign(RepositoryItem item) { BeginUpdate(); base.Assign(item); RepositoryItemCustomTrackBar source = item as RepositoryItemCustomTrackBar; if (source == null) { return; } this.TickDisplayText = source.TickDisplayText; EndUpdate(); Events.AddHandler(RepositoryItemCustomTrackBar.drawingTick, source.Events[RepositoryItemCustomTrackBar.drawingTick]); }
static CustomTrackBar() { RepositoryItemCustomTrackBar.RegisterCustomTrackBar(); }