/// <summary> /// LoadSetting /// </summary> private static AutoCopySetting LoadSetting() { if (!File.Exists(StaticString.SettingFileFullPath)) { return(new AutoCopySetting()); } return(XmlSettingReader.Load(StaticString.SettingFileFullPath)); }
/// <summary> /// LoadSetting /// </summary> private AutoCopySetting LoadSetting() { if (!File.Exists(StaticString.SettingFileFullPath)) { return(new AutoCopySetting()); } var sett = XmlSettingReader.Load(StaticString.SettingFileFullPath); this.txtSourcePath.Text = sett.SourcePath; this.txtDestinationPath.Text = sett.DestinationPath; this.txtArchiveFolderPath.Text = sett.ArchivePath; this.cmbRepatEach.Text = sett.RepeatEach; this.cmbTransferType.Text = sett.TransferType; this.cmbArchiveType.Text = sett.ArchivePath; return(sett); }
public AutoCopyDependency() { this.RepeatCount = -1; this.CopySettings = XmlSettingReader.Load(StaticString.SettingFileFullPath); this.Secounds = Int32.Parse(this.CopySettings.RepeatEach); }