WinConfig.ts 635 B

1234567891011121314151617181920212223242526272829
  1. export class WinConfig {
  2. public productVersion: string = '';
  3. public fileVersion: string = '';
  4. public versionStrings: {
  5. ProductName?: undefined,
  6. CompanyName?: undefined,
  7. FileDescription?: undefined,
  8. LegalCopyright?: undefined,
  9. } = {};
  10. public icon: string = undefined;
  11. constructor(options: any = {}) {
  12. Object.keys(this).map((key) => {
  13. if(options[key] !== undefined) {
  14. switch(key) {
  15. default:
  16. (<any>this)[key] = options[key];
  17. break;
  18. }
  19. }
  20. });
  21. }
  22. }