7_A
- hrafnulf13
- Oct 23, 2020
- 1 min read
Updated: Oct 28, 2020
C#
Link to folder: https://drive.google.com/drive/folders/1MAqIy8WyJ5PkNB0JukC7VPInYLJakLX8?usp=sharing
Link to zip:
Name of the folder: Lesson3
Name of the zip file: Bektur_Umarbaev_1954545_APP_7.zip
The application:
Reads csv files (was tested on all files in "csv" folder, within "lesson 3" folder)
Guesses the header (if autodetect is on)
Allows user to skip or not skip first line (if manual is on)
Sets the delimiter in for reading csv files
Prints all variables and vaues in listview control (like a table)
Prints all variables and vaues in treeview control (hierarchical relationships)
Allows to select the variable and print general info (name, suggested type, type of the variable)
Tries to change the type of the selected variable upon user request (since not all conversions are possible, wrong conversions will cause error and print message in richtextbox)
Allows to restore value after data type conversion (For example, double to int casting will round the value, then user can restore the value that was assigned during the reading of the file)

References
https://stackoverflow.com/questions/3507498/reading-csv-files-using-c-sharp
https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.fileio.textfieldparser?redirectedfrom=MSDN&view=netcore-3.1
https://stackoverflow.com/questions/34798681/method-with-multiple-return-types
Comentarios