Пример #1
0
 internal void RemoveBorderAndContent()
 {
     if (actual_border != null)
     {
         Diagram.RemoveNodeBorderFragment(actual_border);
     }
     if (content != null)
     {
         Diagram.RemoveNodeContentFragment(content);
     }
 }
Пример #2
0
 protected override void OnAfterRender(bool first_render)
 {
     if (Deleted)
     {
         Diagram.RemoveNodeBorderFragment(actual_border);
         Diagram.RemoveNodeContentFragment(content);
     }
     if (NodeLibrary != null)
     {
         OffCanvas    = false;
         (X, Y, _, _) = NodeLibrary.GetPosition(this);
         content_reference?.TriggerStateHasChanged();
     }
     else
     {
         content_reference?.TriggerStateHasChanged();
         node_border_reference?.TriggerStateHasChanged();
     }
     base.OnAfterRender(first_render);
 }