コード例 #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;
 }
コード例 #2
0
ファイル: Launcher.cs プロジェクト: qistoph/BrowserSelector
 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);
     }
 }