コード例 #1
0
        /// <summary>
        ///     Update the buttons and the title
        /// </summary>
        /// <param name="command">Command which has been executed</param>
        /// <param name="saved">True if the project is in a saved state</param>
        private void UpdateProjectView(Command command, bool saved)
        {
            // Show the title
            _projectManager.Saved = saved;
            title.text            = _projectManager.CurrentProject.Name;
            if (!saved)
            {
                title.text += "*";
            }

            // Enable the buttons
            undo.Enable(_undoService.HasUndo());
            redo.Enable(_undoService.HasRedo());

            // Update the station view
            stationController.UpdateStation(command);
        }