Example #1
0
        private T GetInitProperty <T>(InitialPropertyKeys key)
        {
            var propertyBag = SyncRoot as Dictionary <InitialPropertyKeys, object>;

            if (propertyBag != null && propertyBag.TryGetValue(key, out object value))
            {
                return((T)value);
            }
            return(default);
Example #2
0
        private T GetInitProperty <T>(InitialPropertyKeys key)
        {
            var propertyBag = InitialPropertyBag;

            if (propertyBag != null && propertyBag.TryGetValue(key, out object value))
            {
                return((T)value);
            }
            return(default);
Example #3
0
        private void SetInitProperty(InitialPropertyKeys key, object value)
        {
            var propertyBag = SyncRoot as Dictionary <InitialPropertyKeys, object>;

            if (_state != State.NotInitialized || propertyBag is null)
            {
                throw new InvalidOperationException("This property must be set before the underlying CEF browser is created.");
            }
            propertyBag[key] = value;
        }
Example #4
0
        private void SetInitProperty(InitialPropertyKeys key, object value)
        {
            var propertyBag = InitialPropertyBag;

            if (propertyBag != null)
            {
                propertyBag[key] = value;
            }
            else
            {
                throw new InvalidOperationException("This property must be set before the underlying CEF browser is created.");
            }
        }
Example #5
0
 private T GetInitProperty <T>(InitialPropertyKeys key)
 {
     return(default);
Example #6
0
 private void SetInitProperty(InitialPropertyKeys key, object value)
 {
     throw new InvalidOperationException("This property must be set before the underlying CEF browser is created.");
 }