Esempio n. 1
0
 /// <summary>
 ///      LoadSetting
 /// </summary>
 private static AutoCopySetting LoadSetting()
 {
     if (!File.Exists(StaticString.SettingFileFullPath))
     {
         return(new AutoCopySetting());
     }
     return(XmlSettingReader.Load(StaticString.SettingFileFullPath));
 }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 public AutoCopyDependency()
 {
     this.RepeatCount  = -1;
     this.CopySettings = XmlSettingReader.Load(StaticString.SettingFileFullPath);
     this.Secounds     = Int32.Parse(this.CopySettings.RepeatEach);
 }