mono/xwt — pull request #229 by luiscubal (2013-07-24 14:40:08+00:00)
Title: Fixed NRE in Xwt for DialogButtons

Test code:

```csharp
public class MyDialog : Dialog
{
public MyDialog ()
{
Buttons.Add (new Xwt.DialogButton (Command.Ok) { Sensitive = false });
}
}
```

The problem being that `ParentDialog` is not yet set by the time `Sensitive = false` is run and, therefore, `ParentDialog.UpdateButton (this);` causes an NRE.
This fix ensures `UpdateButton` is only called when ParentDialog is not null.