public PageViewModel(ASpaceObject spaceObject) { Name = spaceObject.Name; Size = spaceObject.Size; Speed = spaceObject.Speed; IsHazerdious = spaceObject.IsHazerdious; }
public ASpaceObjectPage(ASpaceObject so, ObservableCollection <ASpaceObject> collection) { InitializeComponent(); PageViewModel pageView = new PageViewModel(so); BindingContext = pageView; oCollection = collection; }
public ASpaceObject ToSpaceObject() { ASpaceObject s = new ASpaceObject { Name = this.Name, Size = this.Size, Speed = this.Speed, IsHazerdious = this.IsHazerdious }; return(s); }