Skip to content

Commit

Permalink
Fixed bookmark in space for crucible
Browse files Browse the repository at this point in the history
  • Loading branch information
emist committed Dec 24, 2011
1 parent c8b51e3 commit ded5a5d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Wrappers/AddressBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ private Button getOkButton()
return new Button("OK", iresp.X, iresp.Y, iresp.Height, iresp.Width);
}

private Button getSubmitButton()
{
InterfaceResponse iresp = (InterfaceResponse)com.sendCall(FunctionCallFactory.CALLS.GETMODALSUBMITBUTTON, Response.RESPONSES.INTERFACERESPONSE);
if (iresp == null)
{
return null;
}

return new Button("Submit", iresp.X, iresp.Y, iresp.Height, iresp.Width);
}
/// <summary>
/// Open the address book
/// </summary>
Expand Down Expand Up @@ -156,11 +166,11 @@ public bool bm()
clickAddressBookBMButton();
Thread.Sleep(ran.Next(200, 300));

Button ok = getOkButton();
if (ok == null)
Button submit = getSubmitButton();
if (submit == null)
return false;

bool outcome = click(ok);
bool outcome = click(submit);
while (isOpen())
{
close();
Expand Down

0 comments on commit ded5a5d

Please sign in to comment.