Program.cs
1020 字节
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OnlineStore.LoadCSVLibrary
{
class Program
{
static void Main(string[] args)
{
var baseDir = ".\\";
string configFile = Path.Combine(baseDir, "config\\Config.csv");
var Config = new Robot_Config(0, "", configFile);
Config = (Robot_Config)CSVConfigReader.LoadConfig<IO_Type>(Config);
var RConfig = new R_Config(0, "", Path.Combine(baseDir, "config\\Right\\Config.csv"));
RConfig = (R_Config)CSVConfigReader.LoadConfig<SIO_Type>(RConfig);
var LConfig = new L_Config(0, "", Path.Combine(baseDir, "config\\Left\\Config.csv"));
LConfig = (L_Config)CSVConfigReader.LoadConfig<SIO_Type>(LConfig);
Store_ConfigBase device = LConfig;
var x = device.DIList.ContainsKey(SIO_Type.Door_Close);
Console.Read();
}
}
}