protected virtual void OnLoadComplete(SolutionNodeLoadEventArgs e) { if (LoadComplete != null) { LoadComplete(this, e); } }
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)); })); }
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); }
private void project_LoadComplete(object sender, SolutionNodeLoadEventArgs e) { Populate(); }