private void SetDefaults() { settings = new settingsStruct(); this.WaitUntilExistsTimeOut = 30; this.WaitForCompleteTimeOut = 30; settings.autoCloseDialogs = true; }
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(); }
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 }; }
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 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 }; }
public DefaultSettings(settingsStruct settings) { this.settings = settings; }
private Settings(settingsStruct settings) { this.settings = settings; }