コード例 #1
0
ファイル: SkinningForm.cs プロジェクト: galek/SkinFramework
        /// <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();
        }
コード例 #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();
        }