public LinkStructureToParentCommand(Viking.UI.Controls.SectionViewerControl parent, Structure structure, Location_CanvasViewModel location) : base(parent) { this.putativeStruct = structure; this.putativeLoc = location; StructureType LocType = this.putativeStruct.Type; if (LocType != null) { linecolor = new Microsoft.Xna.Framework.Color(LocType.Color.R, LocType.Color.G, LocType.Color.B, 128); } else { linecolor = Microsoft.Xna.Framework.Color.Green; } //Transform the location position to the correct coordinates transformedPos = parent.SectionToVolume(new GridVector2(putativeLoc.X, putativeLoc.Y)); parent.Cursor = Cursors.Cross; }