public void Create(Form parent, bool designMode)
        {
            ILocationUpdate borderLocationUpdate = new BorderLocationUpdateService(parent, borderLayerData.BorderSize);

            locationEventExecutable.Add(Layer, borderLocationUpdate);
            IRegionModifable borderRegionModifable = new BorderRegionModifableService(borderLayerData, parent);

            eventExecutable.RegisterRegionModifable(Layer, borderRegionModifable);
            if (!designMode)
            {
                parent.Owner = Layer;
                Layer.Show();
            }
        }
Beispiel #2
0
        public void Create(Form parent, bool designMode)
        {
            ILocationUpdate shadowLocationUpdate = new ShadowLocationUpdateService(form, shadowLayerData);

            locationEventExecutable.Add(Layer, shadowLocationUpdate);
            ILayeredBitmap   layeredBitmap         = new LayeredBitmapService(Layer);
            IRegionModifable shadowRegionModifable = new ShadowRegionModifableService(shadowLayerData, form, layeredBitmap);

            eventExecutable.RegisterRegionModifable(Layer, shadowRegionModifable);
            if (!designMode)
            {
                parent.Owner = Layer;
                Layer.Show();
            }
        }