public override void ShowModal() { // Release the onidle guard so that the onidle pump continues processing while we block at ShowDialog below Task.Run(() => windowsFormsWindow.ReleaseOnIdleGuard()); WindowsFormsWindow.ShowDialog(); }
public override void Show() { if (mainWindowsFormsWindow != WindowsFormsWindow && childSystemWindow.AlwaysOnTopOfMain) { WindowsFormsWindow.Show(mainWindowsFormsWindow); } else { WindowsFormsWindow.Show(); } }
public override void Invalidate(RectangleDouble rectToInvalidate) { rectToInvalidate.IntersectWithRectangle(LocalBounds); //rectToInvalidate = new rect_d(0, 0, Width, Height); Rectangle windowsRectToInvalidate = GetRectangleFromRectD(rectToInvalidate); if (WindowsFormsWindow != null) { WindowsFormsWindow.RequestInvalidate(windowsRectToInvalidate); } }
public override void ShowModal() { // Release the onidle guard so that the onidle pump continues processing while we block at ShowDialog below Task.Run(() => windowsFormsWindow.ReleaseOnIdleGuard()); if (mainWindowsFormsWindow != WindowsFormsWindow && childSystemWindow.CenterInParent) { Rectangle mainBounds = mainWindowsFormsWindow.DesktopBounds; RectangleDouble newItemBounds = childSystemWindow.LocalBounds; windowsFormsWindow.Left = mainBounds.X + mainBounds.Width / 2 - (int)newItemBounds.Width / 2; windowsFormsWindow.Top = mainBounds.Y + mainBounds.Height / 2 - (int)newItemBounds.Height / 2; } WindowsFormsWindow.ShowDialog(); }
public override void Show() { // Center the window if specified on the SystemWindow if (mainWindowsFormsWindow != WindowsFormsWindow && childSystemWindow.CenterInParent) { Rectangle desktopBounds = mainWindowsFormsWindow.DesktopBounds; RectangleDouble newItemBounds = childSystemWindow.LocalBounds; windowsFormsWindow.Left = desktopBounds.X + desktopBounds.Width / 2 - (int)newItemBounds.Width / 2; windowsFormsWindow.Top = desktopBounds.Y + desktopBounds.Height / 2 - (int)newItemBounds.Height / 2 - TitleBarHeight / 2; } if (mainWindowsFormsWindow != WindowsFormsWindow && childSystemWindow.AlwaysOnTopOfMain) { WindowsFormsWindow.Show(mainWindowsFormsWindow); } else { WindowsFormsWindow.Show(); } }
public override void BringToFront() { WindowsFormsWindow.Activate(); }
public override void ShowModal() { WindowsFormsWindow.ShowDialog(); }
public override void OnClosed(EventArgs e) { WindowsFormsWindow.RequestClose(); }