Ejemplo n.º 1
0
        private void OnCloneComplete()
        {
            if (_shutter != null)
            {
                base.Graphics.Remove(_shutter);
                _shutter.Dispose();
                _shutter = null;
            }

            if (_layers != null)
            {
                base.Graphics.Remove(_layers);
                _layers.Dispose();
                _layers = null;
            }

            _shutter = (ShutterCollection)base.Graphics.FirstOrDefault(IsType <ShutterCollection>);
            _layers  = (LayerCollection)base.Graphics.FirstOrDefault(IsType <LayerCollection>);

            FillOverlayCollections(_shutter);
            foreach (LayerGraphic layer in _layers)
            {
                FillOverlayCollections(layer.Graphics);
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (PauseButton != null)
            {
                PauseButton.Dispose();
                PauseButton = null;
            }

            if (PlayButton != null)
            {
                PlayButton.Dispose();
                PlayButton = null;
            }

            if (StopButton != null)
            {
                StopButton.Dispose();
                StopButton = null;
            }

            if (TempoField != null)
            {
                TempoField.Dispose();
                TempoField = null;
            }

            if (LayerCollection != null)
            {
                LayerCollection.Dispose();
                LayerCollection = null;
            }
        }