Ejemplo n.º 1
0
        /// <summary>
        /// Called when a project is loaded.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="ProjectEventArgs"/> instance containing the event data.</param>
        private void OnProjectLoaded(
            object sender,
            ProjectEventArgs e)
        {
            // Set up the line buffer for the loaded project.
            var projectLineBuffer = new ProjectLineBuffer(e.Project, editorView);

            editorView.SetLineBuffer(projectLineBuffer);
            commandController.Project           = e.Project;
            commandController.ProjectLineBuffer = projectLineBuffer;

            // Update the GUI element.
            UpdateGuiState();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called when a project is loaded.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="ProjectEventArgs"/> instance containing the event data.</param>
        private void OnProjectLoaded(
			object sender,
			ProjectEventArgs e)
        {
            // Set up the line buffer for the loaded project.
            var projectLineBuffer = new ProjectLineBuffer(e.Project, editorView);
            editorView.SetLineBuffer(projectLineBuffer);
            commandController.Project = e.Project;
            commandController.ProjectLineBuffer = projectLineBuffer;

            // Update the GUI element.
            UpdateGuiState();
        }