private static ToolStripItem CreateToolStripItem(LibraryPathType iEnumValue) { ToolStripMenuItem vItem = new ToolStripMenuItem(iEnumValue.ToString()); vItem.Tag = iEnumValue; return(vItem); }
public static RegistryKey RootDirKey(LibraryPathType iType) { switch (iType) { case LibraryPathType.Delphi5: return Registry.LocalMachine.OpenSubKey(@"Software\Borland\Delphi\5.0"); case LibraryPathType.Delphi6: return Registry.CurrentUser.OpenSubKey(@"Software\Borland\Delphi\6.0"); default: throw new NotSupportedException("The library type " + iType.ToString() + " is not supported"); } }
public static RegistryKey EnvironmentPathsKey(LibraryPathType iType) { string vKey = ""; switch (iType) { case LibraryPathType.Delphi6: vKey = @"Software\Borland\Delphi\6.0\Environment Variables"; break; default: throw new NotSupportedException("The library type " + iType.ToString() + " is not supported"); } return Registry.CurrentUser.OpenSubKey(vKey); }
public static RegistryKey RootDirKey(LibraryPathType iType) { switch (iType) { case LibraryPathType.Delphi5: return(Registry.LocalMachine.OpenSubKey(@"Software\Borland\Delphi\5.0")); case LibraryPathType.Delphi6: return(Registry.CurrentUser.OpenSubKey(@"Software\Borland\Delphi\6.0")); default: throw new NotSupportedException("The library type " + iType.ToString() + " is not supported"); } }
public static ILibraryPathsProvider CreateProvider(LibraryPathType iType) { switch (iType) { case LibraryPathType.Delphi5: case LibraryPathType.Delphi6: return(new DelphiLibraryPathsProvider(iType)); case LibraryPathType.Clipboard: return(new ClipboardLibraryPathsProvider()); default: throw new NotSupportedException("Provider " + iType.ToString() + " is not supported, yet."); } }
public static ILibraryPathsProvider CreateProvider(LibraryPathType iType) { switch (iType) { case LibraryPathType.Delphi5: case LibraryPathType.Delphi6: return new DelphiLibraryPathsProvider(iType); case LibraryPathType.Clipboard: return new ClipboardLibraryPathsProvider(); default: throw new NotSupportedException("Provider " + iType.ToString() + " is not supported, yet."); } }
public static RegistryKey EnvironmentPathsKey(LibraryPathType iType) { string vKey = ""; switch (iType) { case LibraryPathType.Delphi6: vKey = @"Software\Borland\Delphi\6.0\Environment Variables"; break; default: throw new NotSupportedException("The library type " + iType.ToString() + " is not supported"); } return(Registry.CurrentUser.OpenSubKey(vKey)); }
private static ToolStripItem CreateToolStripItem(LibraryPathType iEnumValue) { ToolStripMenuItem vItem = new ToolStripMenuItem(iEnumValue.ToString()); vItem.Tag = iEnumValue; return vItem; }