public MainWindow() { Notifications = new NotificationView(); DataContext = Viewmodel = new FlightDisplayModel(Notifications); InitializeComponent(); Notifications.PropertyChanged += Notifications_PropertyChanged; }
public FlightDisplayModel(NotificationView notifications) { Notifications = notifications; Vessel = new VesselViewModel(); MapCoordinates = new MapCoordinateView() { DisplayWidth = 640 * 2, DisplayHeight = 320 * 2, ShapeSize = 24, ShapeAscendingNodeSize = 12 }; Sensors = new SensorsViewModel(); Resources = new ResourceView(); Flight = new FlightViewModel(); Orbit = new OrbitViewModel(); }