Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }