Exemple #1
0
        private void ApplyEdgeProperty(IEdgeProperty property, Identifier identifier)
        {
            var edge = _edges[identifier];

            property.Apply(edge, _debuggerOperations,
                           identifier);
        }
        public void FromIEdgeProperty(IEdgeProperty property)
        {
            if (!(property is LabelEdgeProperty))
            {
                return;
            }

            FromAbstractLabelProperty((LabelEdgeProperty)property);
        }
Exemple #3
0
 public void FromIEdgeProperty(IEdgeProperty property)
 {
     if (!(property is LineWidthEdgeProperty lineWidthEdgeProperty))
     {
         return;
     }
     CheckBox.IsChecked = true;
     TextBox.Text       = $"{lineWidthEdgeProperty.LineWidth:0.00}";
 }
Exemple #4
0
 public void FromIEdgeProperty(IEdgeProperty property)
 {
     if (!(property is LineColorEdgeProperty lineColorEdgeProperty))
     {
         return;
     }
     CheckBox.IsChecked = true;
     SetColor(lineColorEdgeProperty.Color);
 }
        public void FromIEdgeProperty(IEdgeProperty property)
        {
            if (!(property is StyleEdgeProperty))
            {
                return;
            }

            FromProperty(() => ((StyleEdgeProperty)property).Style);
        }
 public void FromIEdgeProperty(IEdgeProperty property)
 {
     if (!(property is ArrowEdgeProperty arrowProperty))
     {
         return;
     }
     CheckBox.IsChecked = true;
     Target.IsChecked   = arrowProperty.ArrowAtTarget;
     Source.IsChecked   = arrowProperty.ArrowAtSource;
 }