public static ParamaterData Load(string infile) { if (File.Exists(infile)) { try { XmlDocument doc = new XmlDocument(); doc.Load(infile); ParamaterData pd = WindGoes.Data.Serializer.GetObject <ParamaterData>(doc); pd.filename = infile; return(pd); } catch { } } return(new ParamaterData(infile)); }
public ParamaterData Clone() { ParamaterData sp = new ParamaterData(); for (int i = 0; i < InputFiles.Count; i++) { sp.InputFiles.Add(InputFiles[i]); } for (int i = 0; i < InputFolders.Count; i++) { sp.InputFolders.Add(InputFolders[i]); } sp.OutputFolder = OutputFolder; sp.TempFolder = TempFolder; sp.FolderForSuccessed = FolderForSuccessed; sp.FolderForFailed = FolderForFailed; sp.KeepOutFolderStructType = KeepOutFolderStructType; sp.KeepOutFolderStructLevel = KeepOutFolderStructLevel; sp.KeepBackupFolderStructType = KeepBackupFolderStructType; sp.KeepBackupFolderStructLevel = KeepBackupFolderStructLevel; sp.ConfirmWhileClosing = ConfirmWhileClosing; sp.StartTransducingWhenStartup = StartTransducingWhenStartup; sp.StartWithWindows = StartWithWindows; sp.DealSameOutputFileNameType = DealSameOutputFileNameType; sp.FilterIndex = FilterIndex; sp.ShowFileOption = ShowFileOption; sp.AppendTimeStamp = AppendTimeStamp; sp.AutoTransducerAvaliable = AutoTransducerAvaliable; sp.SupportAutoTransducer = SupportAutoTransducer; sp.CircleValue = CircleValue; sp.CircleUnit = CircleUnit; sp.StartTime = StartTime; sp.EndTime = EndTime; return(sp); }