Exemple #1
0
        public void SetParent(MainForm parentForm, List <FloatingListForm> floatingForms)
        {
            mainOwner  = parentForm;
            this.Owner = parentForm;

            logForm.Owner = this;

            this.floatingForms = floatingForms;

            Point bp = parentForm.GetBindPoint(true);

            parentForm.PreMove += new MainForm.PreMoveEvent(parentForm_PreMove);

            bp.Y = bp.Y + parentForm.Height;

            this.SetDesktopLocation(bp.X, bp.Y);

            shiftX = parentForm.Location.X - bp.X;
            shiftY = parentForm.Location.Y - bp.Y;
        }
Exemple #2
0
        public void SetParent(MainForm parentForm)
        {
            mainOwner  = parentForm;
            this.Owner = parentForm;

            Point bp = parentForm.GetBindPoint(leftSide);

            parentForm.PreMove += new MainForm.PreMoveEvent(parentForm_PreMove);

            bp.Y = bp.Y - this.Height;

            if (leftSide == false)
            {
                bp.X = bp.X - this.Width;
            }

            this.SetDesktopLocation(bp.X, bp.Y);

            shiftX = parentForm.Location.X - bp.X;
            shiftY = parentForm.Location.Y - bp.Y;
        }
Exemple #3
0
        public void SetParent(MainForm parentForm, List<FloatingListForm> floatingForms)
        {
            mainOwner = parentForm;
            this.Owner = parentForm;

            logForm.Owner = this;

            this.floatingForms = floatingForms;

            Point bp = parentForm.GetBindPoint(true);
            parentForm.PreMove += new MainForm.PreMoveEvent(parentForm_PreMove);

            bp.Y = bp.Y + parentForm.Height;

            this.SetDesktopLocation(bp.X, bp.Y);

            shiftX = parentForm.Location.X - bp.X;
            shiftY = parentForm.Location.Y - bp.Y;
        }