示例#1
0
        private void SetDefaults()
        {
            settings = new settingsStruct();

            this.WaitUntilExistsTimeOut = 30;
            this.WaitForCompleteTimeOut = 30;
            settings.autoCloseDialogs   = true;
        }
示例#2
0
 public settings(string path)
 {
     this.conf = new settingsStruct();
     this.path = path;
     if (this.read() == false)
     {
         this.conf.TargetFolder = path;
         this.conf.daycount     = 7;
         this.conf.mode         = 3;
         this.conf.aribGaiji    = true;
         this.write();
     }
 }
 private void SetDefaults()
 {
     settings = new settingsStruct();
     settings.attachToIETimeOut      = 30;
     settings.waitUntilExistsTimeOut = 30;
     settings.waitForCompleteTimeOut = 30;
     settings.sleepTime                     = 100;
     settings.highLightElement              = true;
     settings.highLightColor                = "yellow";
     settings.autoCloseDialogs              = true;
     settings.autoStartDialogWatcher        = true;
     settings.autoMoveMousePointerToTopLeft = true;
     settings.makeNewIEInstanceVisible      = true;
     settings.findByDefaultFactory          = new FindByDefaultFactory();
 }
示例#4
0
 private void SetDefaults()
 {
     settings = new settingsStruct();
     settings.attachToIETimeOut = 30;
     settings.waitUntilExistsTimeOut = 30;
     settings.waitForCompleteTimeOut = 30;
     settings.sleepTime = 100;
     settings.highLightElement = true;
     settings.highLightColor = "yellow";
     settings.autoCloseDialogs = true;
     settings.autoStartDialogWatcher = true;
     settings.autoMoveMousePointerToTopLeft = true;
     settings.makeNewIEInstanceVisible = true;
     settings.findByDefaultFactory = new FindByDefaultFactory();
 }
示例#5
0
 public void SetDefaults()
 {
     settings = new settingsStruct
     {
         attachToBrowserTimeOut = 30,
         waitUntilExistsTimeOut = 30,
         waitForCompleteTimeOut = 30,
         sleepTime                     = 30,
         highLightElement              = true,
         highLightColor                = "yellow",
         autoCloseDialogs              = true,
         autoStartDialogWatcher        = true,
         autoMoveMousePointerToTopLeft = true,
         makeNewIEInstanceVisible      = true,
         findByDefaultFactory          = new FindByDefaultFactory(),
         makeNewIe8InstanceNoMerge     = true,
         closeExistingFireFoxInstances = true
     };
 }
示例#6
0
        public bool read()
        {
            bool          flag         = true;
            string        fullFileName = System.IO.Path.Combine(path, this.filename);
            XmlSerializer serial       = new XmlSerializer(this.conf.GetType());

            try
            {
                using (StreamReader reader = new StreamReader(fullFileName))
                {
                    this.conf = (settingsStruct)serial.Deserialize(reader);
                }
            }
            catch
            {
                flag = false;
            }
            return(flag);
        }
 private DefaultSettings(settingsStruct settings)
 {
     this.settings = settings;
 }
 private DefaultSettings(settingsStruct settings)
 {
     this.settings = settings;
 }
 private void SetDefaults()
 {
     settings = new settingsStruct
                    {
                        attachToBrowserTimeOut = 30,
                        waitUntilExistsTimeOut = 30,
                        waitForCompleteTimeOut = 30,
                        sleepTime = 30,
                        highLightElement = true,
                        highLightColor = "yellow",
                        autoCloseDialogs = true,
                        autoStartDialogWatcher = true,
                        autoMoveMousePointerToTopLeft = true,
                        makeNewIEInstanceVisible = true,
                        findByDefaultFactory = new FindByDefaultFactory(),
                        makeNewIe8InstanceNoMerge = true,
                        closeExistingFireFoxInstances = true
                    };
 }
示例#10
0
 public DefaultSettings(settingsStruct settings)
 {
     this.settings = settings;
 }
示例#11
0
 private Settings(settingsStruct settings)
 {
     this.settings = settings;
 }
示例#12
0
 private Settings(settingsStruct settings)
 {
     this.settings = settings;
 }
示例#13
0
        private void SetDefaults()
        {
            settings = new settingsStruct();

            this.WaitUntilExistsTimeOut = 30;
            this.WaitForCompleteTimeOut = 30;
            settings.autoCloseDialogs = true;
        }
 public DefaultSettings(settingsStruct settings)
 {
     this.settings = settings;
 }