Exemplo n.º 1
0
 protected virtual void OnLoadComplete(SolutionNodeLoadEventArgs e)
 {
     if (LoadComplete != null)
     {
         LoadComplete(this, e);
     }
 }
Exemplo n.º 2
0
 private void solution_LoadComplete(object sender, SolutionNodeLoadEventArgs e)
 {
     Invoke(new Action(() =>
     {
         var solution           = sender as Solution;
         solution.LoadComplete -= new SolutionNodeLoadEventHandler(solution_LoadComplete);
         _extensionHost.DispatchSolutionLoad(new SolutionEventArgs(solution));
     }));
 }
Exemplo n.º 3
0
        private void solution_LoadComplete(object sender, SolutionNodeLoadEventArgs e)
        {
            Invoke(new Action(() =>
            {
                var solution = sender as Solution;

                foreach (var openedFile in solution.Settings.OpenedFiles)
                {
                    var filePath = new FilePath(solution.FilePath.ParentDirectory, openedFile.RelativePath);
                    if (File.Exists(filePath.FullPath))
                    {
                        var fileHandler = _extensionHost.ExtensionManager.GetFileHandlers(filePath).FirstOrDefault(x => x.GetType().FullName == openedFile.ExtensionTypeName);
                        if (fileHandler != null)
                        {
                            fileHandler.OpenFile(_extensionHost.FileService.OpenFile(filePath));
                        }
                    }
                }

                solution.LoadComplete -= new SolutionNodeLoadEventHandler(solution_LoadComplete);
                _extensionHost.DispatchSolutionLoad(new SolutionEventArgs(solution));
            }));
        }
 protected virtual void OnLoadComplete(SolutionNodeLoadEventArgs e)
 {
     if (LoadComplete != null)
         LoadComplete(this, e);
 }
Exemplo n.º 5
0
 private void project_LoadComplete(object sender, SolutionNodeLoadEventArgs e)
 {
     Populate();
 }