Example #1
0
 private void LoadFileForPreview(string fileToLoad)
 {
     IOResults ares = new IOResults();
     
     bool firstLineIsHeader = true;// (bool)dataEntryForm.checkBoxModelFirstRowHeader.IsChecked;
     List<RawDataRow> dt = blockRawFileReader.LoadRawData(firstLineIsHeader, fileToLoad, ares);
     blockRawFileReader.PerformColumnLoad(fileToLoad, ares, blockRawFileReader.MaxCols, firstLineIsHeader, workerLoadData);
     string ss = blockRawFileReader.GetColumnStats();
     List<string> res = blockRawFileReader.DetermineColumnDataTypes();
     columnDefs = new ModelColumnDefinitions();
     // collect column assignments here
     blockRawFileReader.SetColumnDefinitions(columnDefs);
 }
Example #2
0
        public void ResetUI(){
            
            blockRawFileReader = new RawFileReader();
            ModelColumnDefinitions columnDefs = new ModelColumnDefinitions();
            lastestImportUpdateStatus = null;
            SelectedFormatFile = "";
            LabelLoadedFile.Content = "no file loaded";
            //currentDBFieldsMetaInfo = new List<ColumnMetaInfo>();
            MapConfigTable.ResetView();
            ImportDataPreview.ResetData();
            this.SelectedImportType = -1;
            ReSetRibbonEnabledStatus(true);

        }
Example #3
0
 public void SetColumnDefinitions(ModelColumnDefinitions defs) {
     colDefs = defs;
 }