/// <summary> /// Default constructor /// </summary> public AddSystemViewModel(ComponentTrackerViewModel vM) { componentTracker = vM; this.name = AFSLSystem.DefaultName; this.description = AFSLSystem.DefaultDescription; this.wingType = AFSLSystem.DefaultWingType; this.initializeOtherPrivateFields(); this.createCommands(); this.acquireControllers(); this.subscribeToEvents(); }
/// <summary> /// Default constructor /// </summary> public EditSystemViewModel(ComponentTrackerViewModel vM) { componentTracker = vM; this.name = this.componentTracker.SelectedSystem.Name; this.description = this.componentTracker.SelectedSystem.Description; this.wingType = this.componentTracker.SelectedSystem.WingType; this.initializeOtherPrivateFields(); this.createCommands(); this.acquireControllers(); this.subscribeToEvents(); }