Exemple #1
0
        public SaveConfClass(string path)
        {
            conf = new Confstruct();

            if (path != "")
            {
                base.AppConfigurationPath = path;
                Load();
            }
        }
Exemple #2
0
        public override void SetDefaultConfiguration()
        {
            conf = new Confstruct();
            conf.CurrentParam             = new cc_AppConf.s_MainParam();
            conf.CurrentParam.SyncType    = c_SyncProcess.e_SyncType.SyncSourceToDest;
            conf.CurrentParam.Source      = ApplicationPath;
            conf.CurrentParam.Destination = ApplicationPath;

            conf.CurrentParam.Tasks = cc_AppConf.DefaultDataSet;
        }
Exemple #3
0
        public override void SetDefaultConfiguration()
        {
            conf                            = new Confstruct();
            conf.CurrentConf                = new s_MainParam();
            conf.CurrentConf.SyncType       = DefaultSyncType;
            conf.CurrentConf.Source         = ApplicationPath;
            conf.CurrentConf.Destination    = ApplicationPath;
            conf.CurrentConf.IgnoredFolders = new string[0];

            conf.LastSavedConfFile = ApplicationPath;

            conf.SaveDeletedFiles  = false;
            conf.SaveReplacedFiles = false;
            conf.ReplacedFilesPath = ApplicationPath;
            conf.DeletedFilesPath  = ApplicationPath;

            conf.WriteLogdiskFileInfo = true;

            conf.IgnoreTimeZoneChange                = true;
            conf.IgnoreSummerWinterChange            = true;
            conf.UseCRCcheckIfFileTimeDifferensSmall = false;
            conf.FileTimeDifferensCRCCheck           = 3;
            conf.FileTimeDifferensIgnore             = 3;

            conf.InternalBufferSize = 1024 * 1024 * 1;

            conf.AppPathsCompBasedID = new List <s_ComputerBasedConf>();
            conf.UseDifferentConfigurationsForComputers = true;

            conf.IgnoredSystemFolders = new List <string>();
            conf.IgnoredSystemFolders.Add("System Volume Information");
            conf.IgnoredSystemFolders.Add("RECYCLER");

            conf.DuplicateBlockSize    = 100 * 1024;
            conf.IgnoredDuplicateWords = new List <string>();

            conf.CurrentConf.Tasks = DefaultDataSet;

            conf.WinSize     = new System.Drawing.Size(0, 0);
            conf.WinLocation = new System.Drawing.Point(0, 0);
            conf.WindowState = System.Windows.Forms.FormWindowState.Normal;
        }
Exemple #4
0
 private cc_AppConf()
 {
     conf = new Confstruct();
     Load();
 }