Example #1
0
        private void A(object obj, EventArgs eventArgs)
        {
            Screen    screen      = Screen.FromControl(this.a);
            Rectangle workingArea = screen.WorkingArea;

            base.Location = workingArea.Location;
            base.Size     = workingArea.Size;
            Control control = this.A.B();

            if (control == null)
            {
                throw new l1();
            }
            this.Text = this.a.Text;
            base.Controls.Add((Control)this.A);
            this.A                       = control;
            this.A                       = new Button();
            this.A.Text                  = null;
            this.A.BackgroundImage       = (Image)Icons.A().Clone();
            this.A.BackgroundImageLayout = ImageLayout.Center;
            this.A.Width                 = this.A.Height;
            this.A.Click                += new EventHandler(this.B);
            Form form = new Form();

            form.FormBorderStyle = FormBorderStyle.None;
            form.WindowState     = FormWindowState.Normal;
            form.StartPosition   = FormStartPosition.Manual;
            form.Location        = new Point(base.Location.X + 5, base.Location.Y + 5);
            form.MinimumSize     = new Size(this.A.Height, this.A.Height);
            form.Size            = form.MinimumSize;
            form.ShowIcon        = false;
            form.ShowInTaskbar   = false;
            form.Controls.Add(this.A);
            form.Show(this);
            this.A            = form;
            this.a.Activated += new EventHandler(this.a);
        }