예제 #1
0
            public ExtensibilityAddInsGlobalSection(string name, GlobalSectionInitialization type, List <string> sectionLines)
                : base(name, type, sectionLines)
            {
                AddIns = new List <AddIn>();
                foreach (var line in sectionLines)
                {
                    var match = _addin.Match(line);
                    if (match.Success == false)
                    {
                        throw new InvalidOperationException("Cannot parse addin section");
                    }

                    AddIns.Add(new AddIn(match.Groups["progid"].Value, match.Groups["connected"].Value == "1", match.Groups["name"].Value, match.Groups["description"].Value));
                }
            }
예제 #2
0
 protected GlobalSection(string name, GlobalSectionInitialization type, List<string> sectionLines)
 {
     Name = name;
     Type = type;
     Lines = sectionLines;
 }
예제 #3
0
 protected GlobalSection(string name, GlobalSectionInitialization type, List <string> sectionLines)
 {
     Name  = name;
     Type  = type;
     Lines = sectionLines;
 }
예제 #4
0
            public ExtensibilityAddInsGlobalSection(string name, GlobalSectionInitialization type, List<string> sectionLines)
                : base(name,type,sectionLines)
            {
                AddIns = new List<AddIn>();
                foreach (var line in sectionLines)
                {
                    var match = _addin.Match(line);
                    if (match.Success == false) throw new InvalidOperationException("Cannot parse addin section");

                    AddIns.Add(new AddIn(match.Groups["progid"].Value, match.Groups["connected"].Value == "1", match.Groups["name"].Value, match.Groups["description"].Value));

                }
            }