Example #1
0
 public BrowserInfo(string name, BrowserCategory category, string exePathWithArguments, string iconLocation)
 {
     string exe, arguments;
     SplitExeAndArgs(exePathWithArguments, out exe, out arguments);
     Name = name;
     Category = category;
     Executable = exe;
     Arguments = arguments;
     IconLocation = iconLocation;
 }
Example #2
0
 private string GetCategoryName(BrowserCategory browserCategory)
 {
     switch (browserCategory)
     {
         case BrowserCategory.Default:
             return "lvgDefault";
         case BrowserCategory.Custom:
             return "lvgCustom";
         default:
             throw new ArgumentException("Unknown browser category: " + browserCategory);
     }
 }