Beispiel #1
0
        public static Blanket AttachTo(Control parent)
        {
            var blanket = new Blanket();

            parent.Controls.Add(blanket);

            blanket.Top    = 0;
            blanket.Left   = 0;
            blanket.Width  = parent.Width;
            blanket.Height = parent.Height;
            blanket.BringToFront();

            blanket.Uncover();

            return(blanket);
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     _unitViewerBlanket = GUI.Controls.Blanket.AttachTo(pnlUnitView);
 }