/// <summary> /// Updates the properties of this row /// </summary> private void UpdateProperties() { this.ModifiedOn = this.Thing.ModifiedOn; this.Source = this.Thing.Source; this.Target = this.Thing.Target; }
/// <summary> /// Add an Diagram Element row view model to the list of <see cref="DiagramElementThing"/> /// </summary> /// <param name="diagramElement"> /// The <see cref="DiagramElement"/> that is to be added /// </param> private IDiagramElementThingRowViewModel <DiagramElementThing> AddDiagramElementRowViewModel(DiagramElementThing diagramElement) { var diagramEdge = diagramElement as DiagramEdge; if (diagramEdge != null) { return(new DiagramEdgeRowViewModel(diagramEdge, this.Session, this)); } var diagramObject = diagramElement as DiagramObject; if (diagramObject != null) { return(new DiagramObjectRowViewModel(diagramObject, this.Session, this)); } throw new Exception("No DiagramElementThing to return"); }