Zetbox.Client.Presentables.ZetboxBase.InstanceListViewModel.ExportXML C# (CSharp) Method

ExportXML() public method

public ExportXML ( ) : void
return void
        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));
            }
        }