Example #1
0
 private void InitializeComponent()
 {
     this.klappbareGroupBox = new KlappbareGroupBox();
     base.SuspendLayout();
     this.klappbareGroupBox.BorderColor = Color.Black;
     this.klappbareGroupBox.Location    = new Point(0, 0);
     this.klappbareGroupBox.Margin      = new Padding(0);
     this.klappbareGroupBox.MinimumSize = new Size(0, 25);
     this.klappbareGroupBox.Name        = "klappbareGroupBox";
     this.klappbareGroupBox.Padding     = new Padding(0);
     this.klappbareGroupBox.Size        = new Size(134, 139);
     this.klappbareGroupBox.TabIndex    = 0;
     this.klappbareGroupBox.TabStop     = false;
     this.klappbareGroupBox.Text        = "klappbareGroupBox";
     this.klappbareGroupBox.Enter      += this.klappbareGroupBox_Enter;
     base.AutoScaleDimensions           = new SizeF(6f, 13f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
     this.BackColor     = SystemColors.Control;
     base.Controls.Add(this.klappbareGroupBox);
     base.Margin = new Padding(0);
     base.Name   = "ucXMLAddElementGruppe";
     base.Size   = new Size(140, 170);
     base.Load  += this.ucXMLAddElementGruppe_Load;
     base.ResumeLayout(false);
 }
Example #2
0
        private void ucXMLAddElementGruppe_Resize(object sender, EventArgs e)
        {
            if (this.klappbareGroupBox.Top != 0)
            {
                this.klappbareGroupBox.Top = 0;
            }
            if (this.klappbareGroupBox.Left != 0)
            {
                this.klappbareGroupBox.Left = 0;
            }
            int  width      = this.klappbareGroupBox.Width;
            Size clientSize = base.ClientSize;

            if (width != clientSize.Width)
            {
                KlappbareGroupBox obj = this.klappbareGroupBox;
                clientSize = base.ClientSize;
                obj.Width  = clientSize.Width;
            }
            this.ButtonsAnzeigen();
        }