Example #1
0
        private void document_HidingWindow(object sender, PopupWindowEventArgs e)
        {
            PopupWindow window = e.Window;

            if (_windows.Contains(window))
            {
                _windows.Remove(window);
                ParentForm?.Controls.Remove(window);
            }
        }
Example #2
0
        private void document_HidingWindow(object sender, PopupWindowEventArgs e)
        {
            var window = e.Window;

            if (windows.Contains(window))
            {
                windows.Remove(window);
                if (ParentForm != null)
                {
                    ParentForm.Controls.Remove(window);
                }
            }
        }
Example #3
0
        private void document_ShowingWindow(object sender, PopupWindowEventArgs e)
        {
            PopupWindow window = e.Window;

            if (!windows.Contains(window))
            {
                windows.Add(window);
                if (ParentForm != null)
                {
                    ParentForm.Controls.Add(window);
                    Point point  = this.PointToScreen(Point.Empty);
                    Point absPos = ParentForm.PointToClient(point);
                    window.ParentLocation = absPos;
                    window.BringToFront();
                }
            }
        }
Example #4
0
		private void document_HidingWindow(object sender, PopupWindowEventArgs e)
		{
			PopupWindow window = e.Window;
			if (windows.Contains(window))
			{
				windows.Remove(window);
				if (ParentForm != null)
				{
					ParentForm.Controls.Remove(window);
				}
			}
		}
Example #5
0
		private void document_ShowingWindow(object sender, PopupWindowEventArgs e)
		{
			PopupWindow window = e.Window;
			if (!windows.Contains(window))
			{
				windows.Add(window);
				if (ParentForm != null)
				{
					ParentForm.Controls.Add(window);
					Point point = this.PointToScreen(Point.Empty);
					Point absPos = ParentForm.PointToClient(point);
					window.ParentLocation = absPos;
					window.BringToFront();
				}
			}
		}