Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="buildingsTabViewModel">Buildings tab view model</param>
 /// <param name="buildingEditWindow">Building edit window</param>
 /// <param name="building">Building</param>
 public BuildingEditWindowViewModel(BuildingsTabViewModel buildingsTabViewModel,
     BuildingEditWindow buildingEditWindow, Building building)
     : base(buildingsTabViewModel, buildingEditWindow, building)
 {
     if (Update)
     {
         Building = new Building
         {
             NotificationTargetID = building.NotificationTargetID,
             City = building.City,
             HouseNumber = building.HouseNumber,
             Street = building.Street
         };
     }
     else
     {
         Building = new Building();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="buildingsTabViewModel">Buildings tab view model</param>
 /// <param name="building">Building</param>
 public BuildingEditWindow(BuildingsTabViewModel buildingsTabViewModel, Building building)
 {
     InitializeComponent();
     DataContext = new BuildingEditWindowViewModel(buildingsTabViewModel, this, building);
 }