public List <ImportDataStatus> GetStatus()
        {
            var k  = new Step.DataImport(null, Context);
            var dd = new Step.DataValidation(null, Context);

            if (step == 5)
            {
                dd.GetComponentData(LogPath, true);
            }
            else
            {
                dd.GetComponentData(LogPath);
            }
            return(this.Context.GetComponentStatus(this.LogPath));
        }
 public void InitState()
 {
     if (step == 3 || step == 4 || step == 5)
     {
         var k  = new Step.DataImport(null, Context);
         var dd = new Step.DataValidation(null, Context);
         if (step == 5)
         {
             dd.GetComponentData(LogPath, true);
         }
         else
         {
             dd.GetComponentData(LogPath);
         }
     }
     else if (step == 2)
     {
         this.Context.DataColumns = GetSourceColumns();
     }
     else if (step == 1)
     {
     }
 }
 public ImportContext ImportData(List <ComponentCustomAction> ca)
 {
     if (this.Context.Status == ImportStatus.pending)
     {
         var k  = new Step.DataImport(null, Context);
         var dd = new Step.DataValidation(null, Context);
         dd.GetComponentData(LogPath);
         return(k.ImportComponent(LogPath, ca));
     }
     else
     {
         return(this.Context);
     }
 }
        public DataTable GetComponentData(string compID)
        {
            var k = new Step.DataValidation(null, Context);

            return(k.GetComponentData(compID, LogPath));
        }