Exemplo n.º 1
0
        /// <summary>
        /// Shows this window on the specified Desktop.
        /// </summary>
        /// <param name="target">The target.</param>
        public virtual void Show(Desktop target)
        {
            if (Parent == target)
            {
                return;
            }

            target.Controls.Add(this);

            SetDepth();

            if (Modal)
            {
                target.RegisterModal(this);
            }

            Visible = true;
        }