Esempio n. 1
0
        public Worth4DotSettings createSettingsObject(string[] settingsString)
        {
            //this converts a string to a much faster to access object.
            Worth4DotSettings mySettings = new Worth4DotSettings();

            if (settingsString.Length > 0)
            {
                mySettings.setting0 = float.Parse(settingsString[0]);
                mySettings.setting1 = bool.Parse(settingsString[1]);
                mySettings.setting2 = bool.Parse(settingsString[2]);
                mySettings.setting3 = bool.Parse(settingsString[3]);
                mySettings.setting4 = bool.Parse(settingsString[4]);
                mySettings.setting5 = bool.Parse(settingsString[5]);
            }
            else
            {
                mySettings.setting0 = 0;
                mySettings.setting1 = false;
                mySettings.setting2 = false;
                mySettings.setting3 = false;
                mySettings.setting4 = false;
                mySettings.setting5 = false;
            }
            return(mySettings);
        }
Esempio n. 2
0
 public void setSettings(Worth4DotSettings mySettings)
 {
     mySlider.setSliderValue(mySettings.setting0);
     attachToggle.isOn   = mySettings.setting1;
     greenToggle.isOn    = mySettings.setting2;
     redSwapToggle.isOn  = mySettings.setting3;
     glassesOn.isOn      = mySettings.setting4;
     useLargeToggle.isOn = mySettings.setting5;
     setUpProps();
 }
Esempio n. 3
0
 public void initSettings()
 {
     testSettings0 = new BagoliniSettings();
     testSettings1 = new BoxStringSettings();
     testSettings2 = new DepthTestSettings();
     testSettings3 = new VernierSettings();
     testSettings4 = new DoubleMaddoxSettings();
     testSettings5 = new DepthPracticeSettings();
     testSettings6 = new VisualField1Settings();
     testSettings7 = new Worth4DotSettings();
     testSettings8 = new StandardEyeChartSettings();
 }