示例#1
0
文件: Engine.cs 项目: raj581/Marvin
        public void UnloadProject(Project project)
        {
            if (project == null)
            {
                throw new ArgumentNullException("project");
            }

            if (project.ParentEngine != this)
            {
                throw new InvalidOperationException("The \"Project\" object specified does not belong to the correct \"Engine\" object.");
            }

            project.CheckUnloaded();

            RemoveLoadedProject(project);

            project.Unload();
        }
示例#2
0
文件: Engine.cs 项目: mdae/MonoRT
        public void UnloadProject(Project project)
        {
            if (project == null)
            {
                throw new ArgumentNullException("project");
            }

            if (project.ParentEngine != this)
            {
                throw new InvalidOperationException("The \"Project\" object specified does not belong to the correct \"Engine\" object.");
            }

            project.CheckUnloaded();

            if (project.FullFileName != String.Empty)
            {
                projects.Remove(project.FullFileName);
            }

            project.Unload();
        }
示例#3
0
文件: Engine.cs 项目: Jedzia/BackBock
        public void UnloadProject(Project project)
        {
            if (project == null)
                throw new ArgumentNullException ("project");

            if (project.ParentEngine != this)
                throw new InvalidOperationException ("The \"Project\" object specified does not belong to the correct \"Engine\" object.");

            project.CheckUnloaded ();

            RemoveLoadedProject (project);

            project.Unload ();
        }