private void onAdd(object sender, ReferenceChangedEventArgs e) { if (e.Item is CadDictionary dictionary) { this.RegisterCollection(dictionary); } else { this.addCadObject(e.Item); } }
private void onReferenceChanged(object sender, ReferenceChangedEventArgs e) { //TODO: Should remove the old one?? this.addCadObject(e.Item); }
protected void onReferenceChange(ReferenceChangedEventArgs args) { OnReferenceChange?.Invoke(this, args); }