private void DownloadFile() { if (files.Name != String.Empty) { var model = _file.Load(); var files = new FilesModel(); files.Name = model.Name; files.Progress = model.Progress; ConvertList.Add(files); } }
private void FillConvertList() { // string out type ConvertList.Add(new ValidFunc() { InType = dataType.String, OutType = dataType.String, Validator = ValidToStr } ); ConvertList.Add(new ValidFunc() { InType = dataType.Double, OutType = dataType.String, Validator = ValidToStr }); ConvertList.Add(new ValidFunc() { InType = dataType.DateTime, OutType = dataType.String, Validator = ValidToStr }); // decimal out type ConvertList.Add(new ValidFunc() { InType = dataType.String, OutType = dataType.Double, Validator = ValidToDouble }); ConvertList.Add(new ValidFunc() { InType = dataType.Double, OutType = dataType.Double, Validator = ValidToDouble }); // dateTime out type ConvertList.Add(new ValidFunc() { InType = dataType.String, OutType = dataType.DateTime, Validator = ValidToDT }); ConvertList.Add(new ValidFunc() { InType = dataType.DateTime, OutType = dataType.DateTime, Validator = ValidToDT }); }