Exemple #1
0
        private ExtendedPanel createPanel(Color color)
        {
            var panel = new ExtendedPanel();

            panel.Size      = new Size(0, 0);
            panel.Parent    = this;
            panel.BackColor = color;
            panel.Show();
            return(panel);
        }
Exemple #2
0
        public OverlayForm()
        {
            InitializeComponent();

            this.panelBorderLeft   = createPanel(Color.FromArgb(232, 193, 116));
            this.panelBorderTop    = createPanel(Color.FromArgb(232, 193, 116));
            this.panelBorderRight  = createPanel(Color.FromArgb(232, 193, 116));
            this.panelBorderBottom = createPanel(Color.FromArgb(232, 193, 116));

            this.panelInside = createPanel(Color.FromArgb(123, 159, 212));

            this.Cursor = UiCommon.GetCursor(Properties.Resources.cursor);
        }