public void Run(IWindow w) { mainWindow = (WindowsWindow)w; done = false; System.Windows.Forms.Application.Run(mainWindow); }