Example #1
0
        /// <summary>
        /// Initialize a new instance of the DropSolidWindow class.
        /// </summary>
        /// <param name="paletteDragDrop">Drawing palette.</param>
        /// <param name="renderer">Drawing renderer.</param>
        public DropSolidWindow(IPaletteDragDrop paletteDragDrop, IRenderer renderer)
        {
            _paletteDragDrop = paletteDragDrop;
            _renderer        = renderer;

            FormBorderStyle = FormBorderStyle.None;
            SizeGripStyle   = SizeGripStyle.Hide;
            StartPosition   = FormStartPosition.Manual;
            MaximizeBox     = false;
            MinimizeBox     = false;
            ShowInTaskbar   = false;
            BackColor       = Color.Magenta;
            TransparencyKey = Color.Magenta;
            Opacity         = _paletteDragDrop.GetDragDropSolidOpacity();
        }
        /// <summary>
        /// Initialize a new instance of the DropSolidWindow class.
        /// </summary>
        /// <param name="paletteDragDrop">Drawing palette.</param>
        /// <param name="renderer">Drawing renderer.</param>
        public DropSolidWindow(IPaletteDragDrop paletteDragDrop, IRenderer renderer)
        {
            _paletteDragDrop = paletteDragDrop;
            _renderer = renderer;

            FormBorderStyle = FormBorderStyle.None;
            SizeGripStyle = SizeGripStyle.Hide;
            StartPosition = FormStartPosition.Manual;
            MaximizeBox = false;
            MinimizeBox = false;
            ShowInTaskbar = false;
            BackColor = Color.Magenta;
            TransparencyKey = Color.Magenta;
            Opacity = _paletteDragDrop.GetDragDropSolidOpacity();
        }