コード例 #1
0
 public PageViewModel(ASpaceObject spaceObject)
 {
     Name         = spaceObject.Name;
     Size         = spaceObject.Size;
     Speed        = spaceObject.Speed;
     IsHazerdious = spaceObject.IsHazerdious;
 }
コード例 #2
0
        public ASpaceObjectPage(ASpaceObject so, ObservableCollection <ASpaceObject> collection)
        {
            InitializeComponent();
            PageViewModel pageView = new PageViewModel(so);

            BindingContext = pageView;
            oCollection    = collection;
        }
コード例 #3
0
        public ASpaceObject ToSpaceObject()
        {
            ASpaceObject s = new ASpaceObject {
                Name = this.Name, Size = this.Size, Speed = this.Speed, IsHazerdious = this.IsHazerdious
            };

            return(s);
        }