public override Scale Create(DataValueType valueType) { CategoryScale categoryScale = new CategoryScale(); categoryScale.ValueType = valueType; return((Scale)categoryScale); }
public VirtualizedTreeSource(CategoryScale scale, IHierarchyVirtualizationHelper virtualizer) { this._root = (Category) new ShadowCategory(); this._scale = scale; this._virtualizer = virtualizer; this._leavesChangedWeakEventListener = new WeakEventListener <CategoryScale.VirtualizedTreeSource, object, EventArgs>(this); this._leavesChangedWeakEventListener.OnEventAction = (Action <CategoryScale.VirtualizedTreeSource, object, EventArgs>)((instance, source, eventArgs) => instance.OnVirtualizerLeavesChanged(source, eventArgs)); this._leavesChangedWeakEventListener.OnDetachAction = (Action <WeakEventListener <CategoryScale.VirtualizedTreeSource, object, EventArgs> >)(weakEventListener => this._virtualizer.LeavesChanged -= new EventHandler(weakEventListener.OnEvent)); this._virtualizer.LeavesChanged += new EventHandler(this._leavesChangedWeakEventListener.OnEvent); }
public DefaultTreeSource(CategoryScale scale) { this._root = new Category(); this._root.Scale = scale; this._root.TreeChanged += new EventHandler <TreeChangedEventArgs>(this._root_TreeChanged); }
public DefaultBinder(CategoryScale scale) { this._scale = scale; }