Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SkinningForm"/> class.
        /// </summary>
        /// <param name="parentForm">The parent form.</param>
        /// <param name="manager">The manager.</param>
        public SkinningForm(Form parentForm, SkinningManager manager)
        {
            _manager = manager;
            _parentForm = parentForm;
            _captionButtons = new List<CaptionButton>();

            _bufferContext = BufferedGraphicsManager.Current;
            _bufferGraphics = null;

            if (parentForm.Handle != IntPtr.Zero)
                OnHandleCreated(parentForm, EventArgs.Empty);

            RegisterEventHandlers();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SkinningForm"/> class.
        /// </summary>
        /// <param name="parentForm">The parent form.</param>
        /// <param name="manager">The manager.</param>
        public SkinningForm(Form parentForm, SkinningManager manager)
        {
            _manager        = manager;
            _parentForm     = parentForm;
            _captionButtons = new List <CaptionButton>();

            _bufferContext  = BufferedGraphicsManager.Current;
            _bufferGraphics = null;

            if (parentForm.Handle != IntPtr.Zero)
            {
                OnHandleCreated(parentForm, EventArgs.Empty);
            }

            RegisterEventHandlers();
        }