public void ExportXML()
{
var fileName = ViewModelFactory.GetDestinationFileNameFromUser("Zetbox.xml", "XML|*.xml");
if (!string.IsNullOrWhiteSpace(fileName))
{
SetBusy(string.Format(InstanceListViewModelResources.ExportBusyMessageFormat, 1));
var unpagedQuery = GetUnpagedQuery();
var objects = new List<IDataObject>();
GetPagedQuery(0, Helper.MAXLISTCOUNT, unpagedQuery)
.OnError(ex => OnExportPageError(ex))
.OnResult(OnExportPageResultFactory(objects, 0, Helper.MAXLISTCOUNT, unpagedQuery, fileName));
}
}