예제 #1
0
        private void ResetUserSettings()
        {
            USettings.Reset();
            USettings.Save();

            tbxMessasge.AppendText("user reset" + nl);
            DisplayUserSettingData();
        }
예제 #2
0
        private static void ProcessUserSettings()
        {
            logMsgDbLn2("settings test user| ", "begin");
            logMsgDbLn2("file location| ", USettings.SettingsPathAndFile);

            USet.UserUnitStyleSchemas[0][eSTYLE_NAME].Name    = "Style0Name";
            USet.UserUnitStyleSchemas[0][eVERSION_UNIT].Value = "1.0";

            USet.UserUnitStyleSchemas[1][eSTYLE_NAME].Name    = "Style1Name";
            USet.UserUnitStyleSchemas[1][eVERSION_UNIT].Value = "1.1";

            USet.UserUnitStyleSchemas[2][eSTYLE_NAME].Name    = "Style2Name";
            USet.UserUnitStyleSchemas[2][eVERSION_UNIT].Value = "1.2";

            USettings.Save();

            DisplayUserData();
        }
예제 #3
0
        private void ModifyAndSaveUserSettings()
        {
            USet.GeneralValues.TestB      = true;
            USet.GeneralValues.TestD      = V + 0.2;
            USet.GeneralValues.TestS      = "using generic setting file " + V;
            USet.GeneralValues.TestI      = V;
            USet.GeneralValues.TestIs[1]  = V;
            USet.GeneralValues.TestSs[1]  = "generic " + V;
            USet.UnCategorizedValue       = V;
            USet.MainWindow.Height        = V * 50;
            USet.MainWindow.Width         = V * 100;
            USet.TestDictionary3["one"]   = new TestStruct(V * 10 + 4, V * 10 + 5, V * 10 + 6);
            USet.TestDictionary3["two"]   = new TestStruct(V * 10 + 1, V * 10 + 2, V * 10 + 3);
            USet.TestDictionary3["three"] = new TestStruct(V * 10 + 7, V * 10 + 8, V * 10 + 9);

            USettings.Save();

            tbxMessasge.AppendText("user after" + nl);
            DisplayUserSettingData();
        }