using System;
using System.Windows;
using System.Windows.Forms;
using log4net;
using Application = System.Windows.Forms.Application;
using Control = System.Windows.Controls.Control;
namespace DelftTools.TestUtils
{
///
/// Interaction logic for WpfTestHelper.xaml
///
public partial class WpfTestHelper
{
private static readonly ILog log = LogManager.GetLogger(typeof(WindowsFormsTestHelper));
private static Window window;
private Action shownAction;
private readonly GuiTestHelper guiTestHelper;
private bool wasShown;
public WpfTestHelper()
{
InitializeComponent();
guiTestHelper = GuiTestHelper.Instance;
}
public static void ShowModal(Control control, params object[] propertyObjects)
{
new WpfTestHelper().ShowTopLevel(control, propertyObjects, true, null);
}
public static void ShowModal(Control control, Action formVisibleChangedAction, params object[] propertyObjects)
{
try
{
new WpfTestHelper().ShowTopLevel(control, propertyObjects, true, formVisibleChangedAction);
}
catch (Exception e)
{
log.Error(e.Message, e);
throw;
}
}
public static void ShowModal(Control control, Action