Exemple #1
0
 public FilterSettings(XElement element)
 {
     this.filter     = FilterNothingTreeViewNodeFilter.Instance;
     this.origFilter = this.filter;
     InitializeFilter();
     this.ShowInternalApi = (bool?)element.Element("ShowInternalApi") ?? true;
     this.Language        = Languages.GetLanguage("C#");
 }
Exemple #2
0
 internal FilterSettings(ITreeViewNodeFilter filter, Language language, bool showInternalApi)
 {
     this.filter     = filter;
     this.origFilter = this.filter;
     InitializeFilter();
     this.ShowInternalApi = showInternalApi;
     this.Language        = language ?? Languages.GetLanguage("C#");
 }
Exemple #3
0
 bool HandleCommandLineArguments(CommandLineArguments args)
 {
     LoadAssemblies(args.AssembliesToLoad, commandLineLoadedAssemblies, false);
     if (args.Language != null)
     {
         sessionSettings.FilterSettings.Language = Languages.GetLanguage(args.Language);
     }
     return(true);
 }
Exemple #4
0
 public FilterSettings(XElement element)
 {
     this.ShowApiLevel    = (ApiVisibility?)(int?)element.Element("ShowAPILevel") ?? ApiVisibility.PublicAndInternal;
     this.Language        = Languages.GetLanguage((string)element.Element("Language"));
     this.LanguageVersion = Language.LanguageVersions.FirstOrDefault(v => v.Version == (string)element.Element("LanguageVersion"));
     if (this.LanguageVersion == default(LanguageVersion))
     {
         this.LanguageVersion = language.LanguageVersions.LastOrDefault();
     }
 }
Exemple #5
0
 public FilterSettings(XElement element)
 {
     this.ShowInternalApi = (bool?)element.Element("ShowInternalAPI") ?? true;
     this.Language        = Languages.GetLanguage((string)element.Element("Language"));
     this.LanguageVersion = Language.LanguageVersions.FirstOrDefault(v => v.Version == (string)element.Element("LanguageVersion"));
     if (this.LanguageVersion == default(LanguageVersion))
     {
         this.LanguageVersion = language.LanguageVersions.LastOrDefault();
     }
 }
Exemple #6
0
 bool HandleCommandLineArguments(CommandLineArguments args)
 {
     foreach (string file in args.AssembliesToLoad)
     {
         commandLineLoadedAssemblies.Add(assemblyList.OpenAssembly(file));
     }
     if (args.Language != null)
     {
         sessionSettings.FilterSettings.Language = Languages.GetLanguage(args.Language);
     }
     return(true);
 }
Exemple #7
0
        bool HandleCommandLineArguments(CommandLineArguments args)
        {
            int i = 0;

            while (i < args.AssembliesToLoad.Count)
            {
                var asm = args.AssembliesToLoad[i];
                if (Path.GetExtension(asm) == ".nupkg")
                {
                    nugetPackagesToLoad.Add(asm);
                    args.AssembliesToLoad.RemoveAt(i);
                }
                else
                {
                    i++;
                }
            }
            LoadAssemblies(args.AssembliesToLoad, commandLineLoadedAssemblies, focusNode: false);
            if (args.Language != null)
            {
                sessionSettings.FilterSettings.Language = Languages.GetLanguage(args.Language);
            }
            return(true);
        }
Exemple #8
0
 public FilterSettings(XElement element)
 {
     this.ShowInternalApi = (bool?)element.Element("ShowInternalAPI") ?? true;
     this.Language        = Languages.GetLanguage((string)element.Element("Language"));
 }
Exemple #9
0
 public FilterSettings()
 {
     this.filter   = FilterNothingTreeViewNodeFilter.Instance;
     this.Language = Languages.GetLanguage("C#");
 }
Exemple #10
0
 internal FilterSettings(ITreeViewNodeFilter filter, Language language)
 {
     this.filter   = filter;
     this.Language = language ?? Languages.GetLanguage("C#");
 }