Esempio n. 1
0
        protected void fullImport_Click(object sender, EventArgs e)
        {
            Stopwatch sw = Stopwatch.StartNew();

            ContentImporter ci = new ContentImporter(); 
            int contentCount = ci.ImportDiskContent();

            MediaImporter mi = new MediaImporter();
            int mediaCount = mi.ImportMedia();

            // we map ids at the end..
            ci.MapContentIds(); 

            sw.Stop(); 

            lblStatus.Text = String.Format("Imported {0} content items and {1} media files [{2} seconds]", 
                contentCount, mediaCount, sw.Elapsed.TotalSeconds); 
        }
Esempio n. 2
0
 public void MapContent()
 {
     ContentImporter ci = new ContentImporter();
     ci.MapContentIds();
 }
Esempio n. 3
0
 public int ImportContent()
 {
     ContentImporter ci = new ContentImporter();
     return ci.ImportDiskContent();
 }