Example #1
0
        private void GenerateInitialSettings()
        {
            RtSettingPair[] Settings = new RtSettingPair[] { new RtSettingPair("RRINT", "0"), new RtSettingPair("RRAAM", "0"),
                                                             new RtSettingPair("SSO", "0"), new RtSettingPair("SSBD", "1"), new RtSettingPair("CN", "1"), new RtSettingPair("SSDI", "1"), new RtSettingPair("UGL", "1") };

            RtSettings.CreateSettings(Settings);
        }
        private void GenerateSettingsIfDontExist()
        {
            if (!RtSettings.DoSettingsExist())
            {
                RtSettingPair[] Settings = new RtSettingPair[] { new RtSettingPair("RRINT", "0"), new RtSettingPair("RRAAM", "0"),
                                                                 new RtSettingPair("SSO", "0"), new RtSettingPair("SSBD", "1"), new RtSettingPair("CN", "1"), new RtSettingPair("SSDI", "1"), new RtSettingPair("UGL", "1") };

                RtSettings.CreateSettings(Settings);
            }
        }
Example #3
0
        private void SettingsCheckbox_Callback(string CheckboxText)
        {
            if (SettingsCheckbox != null && SettingsCheckbox1 != null && SettingsCheckbox2 != null && SettingsCheckbox3 != null &&
                SettingsCheckbox4 != null && SettingsCheckbox5 != null && SettingsCheckbox6 != null)
            {
                RtSettingPair[] Settings = new RtSettingPair[] { new RtSettingPair("RRINT", (SettingsCheckbox.Checked ? ONE: "0")),
                                                                 new RtSettingPair("RRAAM", (SettingsCheckbox1.Checked ? ONE: "0")), new RtSettingPair("SSO", (SettingsCheckbox2.Checked ? ONE: "0")),
                                                                 new RtSettingPair("SSBD", (SettingsCheckbox3.Checked ? ONE: "0")), new RtSettingPair("CN", (SettingsCheckbox4.Checked ? ONE: "0")),
                                                                 new RtSettingPair("SSDI", (SettingsCheckbox5.Checked ? ONE: "0")) };

                RtSettings.CreateSettings(Settings);
            }
        }