예제 #1
0
        /// <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();
        }
예제 #2
0
        /// <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();
        }