|
|
|
@ -31,12 +31,28 @@ namespace ICSharpCode.VBNetBinding.OptionPanels
@@ -31,12 +31,28 @@ namespace ICSharpCode.VBNetBinding.OptionPanels
|
|
|
|
|
InitializeComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override void Load(MSBuildBasedProject project, string configuration, string platform) |
|
|
|
|
#region override
|
|
|
|
|
|
|
|
|
|
protected override void Initialize() |
|
|
|
|
{ |
|
|
|
|
base.Load(project, configuration, platform); |
|
|
|
|
Initialize(); |
|
|
|
|
ProjectItems = new ObservableCollection<string>(); |
|
|
|
|
NameSpaceItems = new ObservableCollection<string> (); |
|
|
|
|
|
|
|
|
|
foreach(ProjectItem item in base.Project.Items) |
|
|
|
|
{ |
|
|
|
|
if(item.ItemType == ItemType.Import) { |
|
|
|
|
ProjectItems.Add(item.Include); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IProjectContent projectContent = ParserService.GetProjectContent(base.Project); |
|
|
|
|
foreach(IProjectContent refProjectContent in projectContent.ThreadSafeGetReferencedContents()) { |
|
|
|
|
AddNamespaces(refProjectContent); |
|
|
|
|
} |
|
|
|
|
AddNamespaces(projectContent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override bool Save(MSBuildBasedProject project, string configuration, string platform) |
|
|
|
|
{ |
|
|
|
@ -62,6 +78,9 @@ namespace ICSharpCode.VBNetBinding.OptionPanels
@@ -62,6 +78,9 @@ namespace ICSharpCode.VBNetBinding.OptionPanels
|
|
|
|
|
return base.Save(project, configuration, platform); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ObservableCollection<string> projectItems; |
|
|
|
|
|
|
|
|
|
public ObservableCollection<string> ProjectItems { |
|
|
|
@ -121,25 +140,7 @@ namespace ICSharpCode.VBNetBinding.OptionPanels
@@ -121,25 +140,7 @@ namespace ICSharpCode.VBNetBinding.OptionPanels
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void Initialize() |
|
|
|
|
{ |
|
|
|
|
ProjectItems = new ObservableCollection<string>(); |
|
|
|
|
NameSpaceItems = new ObservableCollection<string> (); |
|
|
|
|
|
|
|
|
|
foreach(ProjectItem item in base.Project.Items) |
|
|
|
|
{ |
|
|
|
|
if(item.ItemType == ItemType.Import) { |
|
|
|
|
ProjectItems.Add(item.Include); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IProjectContent projectContent = ParserService.GetProjectContent(base.Project); |
|
|
|
|
foreach(IProjectContent refProjectContent in projectContent.ThreadSafeGetReferencedContents()) { |
|
|
|
|
AddNamespaces(refProjectContent); |
|
|
|
|
} |
|
|
|
|
AddNamespaces(projectContent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void AddNamespaces(IProjectContent projectContent) |
|
|
|
|
{ |
|
|
|
|