Exemple #1
0
        void PlaceFeeder(MvButton feeder, Control control)
        {
            if (feeder == null)
            {
                return;
            }

            if (control is GroupBox)
            {
                PanelTag tag = control.Tag as PanelTag;
                feeder.Info.PanelX = tag.Index;
                feeder.IsArranged  = true;
                this.Location      = LocationOnGroupBox;
                control.Controls.Add(feeder);
                feeder.BringToFront();
            }
        }
Exemple #2
0
        void UnPlaceFeeder(MvButton feeder)
        {
            if (feeder == null)
            {
                return;
            }

            if (feeder.Parent is GroupBox)
            {
                feeder.Location = new Point(feeder.Parent.Location.X + feeder.Location.X, feeder.Parent.Location.Y + feeder.Location.Y);
                feeder.Parent.Controls.Remove(feeder);
                PanelArranged.Controls.Add(feeder);

                this.IsArranged = false;
            }

            feeder.BringToFront();
        }