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

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