예제 #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); 
        }
예제 #2
0
 public int ImportMedia()
 {
     MediaImporter mi = new MediaImporter();
     return mi.ImportMedia();
 }