Exemple #1
0
 private void onAdd(object sender, ReferenceChangedEventArgs e)
 {
     if (e.Item is CadDictionary dictionary)
     {
         this.RegisterCollection(dictionary);
     }
     else
     {
         this.addCadObject(e.Item);
     }
 }
Exemple #2
0
        private void onReferenceChanged(object sender, ReferenceChangedEventArgs e)
        {
            //TODO: Should remove the old one??

            this.addCadObject(e.Item);
        }
Exemple #3
0
 protected void onReferenceChange(ReferenceChangedEventArgs args)
 {
     OnReferenceChange?.Invoke(this, args);
 }