Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PopupWindow"/> class with default settings.
 /// </summary>
 /// <param name="ownerForm">The main form that owns this popup form.</param>
 public PopupWindow(Form ownerForm) : base()
 {
     FOwnerForm   = ownerForm;
     FPopupHelper = new PopupWindowHelper();
     FPopupHelper.AssignHandle(ownerForm.Handle);
     FormBorderStyle = FormBorderStyle.FixedToolWindow;
     ControlBox      = false;
     StartPosition   = FormStartPosition.Manual;
     ShowInTaskbar   = false;
 }
Пример #2
0
 /// <summary>
 /// Constructs a new instance of this class and sets the owning
 /// object.
 /// </summary>
 /// <param name="owner">The <see cref="PopupWindowHelper"/> object
 /// which owns this class.</param>
 public PopupWindowHelperMessageFilter(PopupWindowHelper owner)
 {
     this.owner = owner;
 }