Exemple #1
0
 public void SetUp()
 {
     position1 = new VRPosition(42, 42, 42);
     scale = new VRScale(100, 100);
     building1 = new BuildingViewModel(position1, scale, 1);
     building2 = new BuildingViewModel(position1, scale, 2);
 }
Exemple #2
0
        /// <summary>
        /// Creates the new building.
        /// </summary>
        /// <param name="position">The position.</param>
        /// <param name="scale">The scale.</param>
        /// <param name="id">The identifier.</param>
        /// <returns>
        /// the view-model of the building
        /// </returns>
        public BuildingViewModel CreateNewObject(VRPosition position, VRScale scale, int id)
        {
            BuildingView view = new BuildingView();
            Log.Logger.GetInstance().Warning("0scale = " + scale.Width);
            Log.Logger.GetInstance().Error("Building pos " + position.X + " " + position.Y);
            BuildingViewModel viewModel = new BuildingViewModel(position, scale, id);

            this.LinkMVVM(view, viewModel);
            return viewModel;
        }