public NativeWindow(ChromelyConfiguration config) { _nativeHost = NativeHostFactory.GetNativeHost(config); _config = config; Handle = IntPtr.Zero; _nativeHost.Created += OnCreated; _nativeHost.Moving += OnMoving; _nativeHost.SizeChanged += OnSizeChanged; _nativeHost.Close += OnClose; }
public NativeWindow(IChromelyConfiguration config, INativeHost nativeHost) { _config = config; _nativeHost = nativeHost; if (_nativeHost == null) { _nativeHost = NativeHostFactory.GetNativeHost(_config); } Handle = IntPtr.Zero; _nativeHost.Created += OnCreated; _nativeHost.Moving += OnMoving; _nativeHost.SizeChanged += OnSizeChanged; _nativeHost.Close += OnClose; }