Exemple #1
0
        protected void fullExport_Click(object sender, EventArgs e)
        {

            Stopwatch sw = Stopwatch.StartNew();

            ContentExporter cw = new ContentExporter(); 
            int contentCount = cw.ExportSite(false);

            MediaExporter me = new MediaExporter();
            int mediaCount = me.Export(); 

            sw.Stop(); 

            lblStatus.Text = String.Format("Exported {0} content nodes and {1} media items [{2} seconds]", 
                contentCount, mediaCount, sw.Elapsed.TotalSeconds); 
        }
Exemple #2
0
 public int ExportContent(bool pairs)
 {
     // do the content exoort
     ContentExporter cw = new ContentExporter();
     return cw.ExportSite(pairs);    
 }