Ejemplo n.º 1
0
 public static GuiDialog GetDialog(ApplicationLauncher program, AutomationElement parentWindow, string caption)
 {
     //kan kanskje få til noge med: window.GetMessageBox() i hoved dsl-klassen
     if (_cachedDialog == null || _cachedDialog.Caption != caption) {
         var dialog = program.GetDialog(caption);
         _cachedDialog = new GuiDialog(dialog, caption);
         _currentProgram = program;
         _currentParentWindow = parentWindow;
     }
     return _cachedDialog;
 }