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; }
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); } }