if (dialog.OwnerData != null && dialog.OwnerData.length > 0)
{
ownerID = dialog.OwnerData[0].OwnerID;
}
onScriptDialog.raiseEvent(new ScriptDialogEventArgs(Utils.bytesWithTrailingNullByteToString(dialog.Data.Message),
Utils.bytesWithTrailingNullByteToString(dialog.Data.ObjectName),
dialog.Data.ImageID,
dialog.Data.ObjectID,
Utils.bytesWithTrailingNullByteToString(dialog.Data.FirstName),
Utils.bytesWithTrailingNullByteToString(dialog.Data.LastName),