import { remote } from 'electron' ; export class Window { title : string = "App" ; constructor ( ) { } tryCloseWindow ( ) { this . closeWindow ( ) ; } minimizeWindow ( ) { var window = remote . getCurrentWindow ( ) ; window . minimize ( ) ; } maximizeWindow ( ) { var window = remote . getCurrentWindow ( ) ; if ( window . isMaximized ( ) ) { window . unmaximize ( ) ; } else { window . maximize ( ) ; } } closeWindow ( ) { var window = remote . getCurrentWindow ( ) ; window . close ( ) ; } showHelp ( ) { remote . getCurrentWindow ( ) . webContents . openDevTools ( ) ; } }