Пример #1
0
        private void DrawRect()
        {
            Label rect1 = new Label();

            rect1.SuspendLayout();
            rect1.Location    = p1;
            rect1.Height      = HRect;
            rect1.Width       = WRect;
            rect1.Name        = NameRect;
            rect1.BorderStyle = BorderStyle.FixedSingle;
            rect1.MinimumSize = new Size(10, 10);
            rect1.Text        = CountRect.ToString();
            this.Controls.Add(rect1);
            rect1.SuspendLayout();
            rect1.Enabled = false;
            rect1.BringToFront();
        }
Пример #2
0
 private void createNameRect()
 {
     NameRect = FirstPartNameRect + CountRect.ToString();
     DrawRect();
 }