public IEDSett GetEDSett() { IEDSett set = null; set = new UserSett(); return(set); }
//static T t1 = new T(""); static void Main(string[] args) { //string xls = @"E:\Den_2020-09-14\Den\App\数据2020-8-31 174255\2020.08.30-3(E008-E009后4对,纯化,不纯化,1-10,无破碎)\2020.08.30-3结果分析.xls"; //string xlsx = @"E:\Den_2020-09-14\Den\App\QPCR结果 - 1\2019.07.10\2019.7.10-上午-Quantification Cq Results.xlsx"; string dic = null; dic = args.Length > 0 ? args[0] : null; //dic = @"E:\100-项目代码箱\110-进行中项目\QPCR数据\仪器Excel"; dic = @"E:\Den_2020-09-14\Den\App\仪器Excel"; //dic = @"E:\Den_2020-09-14\Den\App\数据2020-8-31 174255"; //dic = @"E:\Den_2020-09-14\Den\App\数据2020-8-31 174255\2020.08.30-2(E008中间7对,纯化,不纯化,1-10,无破碎)"; IEDInstance ins = new BLL.Export(); IEDSett set = ins.GetEDSett(); string t = Convert.ToString(true); set.Write("JoinDb", t); DateTime dtStart = DateTime.Now; IEDLoad load = ins.GetEDLoad("I"); load.ProgressEvent += Load_ProgressEvent; load.Load(100, dic); DateTime dtEnd = DateTime.Now; Console.WriteLine((dtEnd - dtStart).TotalMilliseconds); SQLite.Export exp = new SQLite.Export(); Console.ReadKey(); }
public IEDLoad GetEDLoad(string name) { IEDLoad load = null; IEDSett set = GetEDSett(); Port port; switch (name) { case "I": port = new Port() { CellHelper = new CellHelperI(), EvFile = new FileValidation(), EvTarget = new TargetValidation(), EvSample = new SampleValidation(), Group = new GroupI(), Calculation = new CalculateI(), Output = new OutPutI(), ExcIns = excIns, DbIns = dbIns, JoinDb = Convert.ToBoolean(set.Read("JoinDb")) }; port.CqHelper = new CqHelperI(port.EvTarget, port.EvSample); load = new Load.LoadI(port); break; case "II": port = new Port() { CellHelper = new CellHelperI(), EvFile = new FileValidation(), EvTarget = new TargetValidation(), EvSample = new SampleValidation(), Group = new GroupII(), Calculation = new CalculateI(), Output = new OutPutII(), ExcIns = excIns, DbIns = dbIns, JoinDb = Convert.ToBoolean(set.Read("JoinDb")) }; port.CqHelper = new CqHelperII(port.EvTarget, port.EvSample); load = new LoadII(port); break; default: break; } return(load); }
public MainWindow() { instance = new Export(); set = instance.GetEDSett(); //set.Write("OutTypeList", "I,II"); string value = set.Read("OutTypeList"); bs = new BindSoure() { Items = value?.Split(','), SelectedItem = set.Read("OutType"), Title = _titlehead, JoinDb = Convert.ToBoolean(set.Read("JoinDb")) }; InitializeComponent(); this.DataContext = bs; //bar.Visibility = Visibility.Collapsed; //cbType.ItemsSource = lt; //cbType.SelectedItem = value; }