Boo.BooLangProject.BooProjectNode.Load C# (CSharp) Method

Load() public method

public Load ( string fileName, string location, string name, uint flags, System.Guid &iidProject, int &canceled ) : void
fileName string
location string
name string
flags uint
iidProject System.Guid
canceled int
return void
        public override void Load(string fileName, string location, string name, uint flags, ref Guid iidProject, out int canceled)
        {
            // this needs to be instantiated before the base call, and then start watching
            // the hierarchy after. This is because the base.Load call hits the AddChild
            // method of the references, which add to the project sources. The watching
            // needs to start after the base call because if it's started before, then there
            // aren't any files added yet!
            projectSources = new BooProjectSources(languageService);

            base.Load(fileName, location, name, flags, ref iidProject, out canceled);

            projectSources.StartWatchingHierarchy(InteropSafeHierarchy);

            BooProjectSources.LoadedProjects.Add(projectSources);
        }