コード例 #1
0
        public Configuration()
        {
            //First Time Installs
            redist_first_time   = true;
            logitech_first_time = true;
            corsair_first_time  = true;
            razer_first_time    = true;

            //General Program Settings
            allow_peripheral_devices       = true;
            use_volume_as_brightness       = false;
            allow_wrappers_in_background   = true;
            allow_all_logitech_bitmaps     = true;
            logitech_enhance_brightness    = true;
            global_brightness              = 1.0f;
            keyboard_brightness_modifier   = 1.0f;
            peripheral_brightness_modifier = 1.0f;
            updates_check_on_start_up      = true;
            updates_allow_silent_minor     = true;
            start_silently        = false;
            close_mode            = AppExitMode.Ask;
            mouse_orientation     = MouseOrientationType.RightHanded;
            keyboard_brand        = PreferredKeyboard.None;
            keyboard_localization = PreferredKeyboardLocalization.None;
            excluded_programs     = new HashSet <string>();
            additional_profiles   = new Dictionary <string, GenericApplicationProfileManager>();

            //Blackout and Night theme
            time_based_dimming_enabled      = false;
            time_based_dimming_affect_games = false;
            time_based_dimming_start_hour   = 21;
            time_based_dimming_start_minute = 0;
            time_based_dimming_end_hour     = 8;
            time_based_dimming_end_minute   = 0;

            nighttime_enabled      = true;
            nighttime_start_hour   = 20;
            nighttime_start_minute = 0;
            nighttime_end_hour     = 7;
            nighttime_end_minute   = 0;

            //// Idle Effects
            idle_type  = IdleEffects.None;
            idle_delay = 5;
            idle_speed = 1.0f;
            idle_effect_primary_color   = Color.FromArgb(0, 255, 0);
            idle_effect_secondary_color = Color.FromArgb(0, 0, 0);
            idle_amount    = 5;
            idle_frequency = 2.5f;

            //Overlay Settings
            volume_overlay_settings = new VolumeOverlaySettings();
            skype_overlay_settings  = new SkypeOverlaySettings();
        }
コード例 #2
0
        public Configuration()
        {
            //First Time Installs
            redist_first_time   = true;
            logitech_first_time = true;
            corsair_first_time  = true;
            razer_first_time    = true;

            //General Program Settings
            allow_peripheral_devices     = true;
            use_volume_as_brightness     = false;
            allow_wrappers_in_background = true;
            allow_all_logitech_bitmaps   = true;
            GlobalBrightness             = 1.0f;
            KeyboardBrightness           = 1.0f;
            peripheralBrightness         = 1.0f;
            updates_check_on_start_up    = true;
            updates_allow_silent_minor   = true;
            start_silently              = false;
            close_mode                  = AppExitMode.Ask;
            mouse_orientation           = MouseOrientationType.RightHanded;
            keyboard_brand              = PreferredKeyboard.None;
            keyboard_localization       = PreferredKeyboardLocalization.None;
            mouse_preference            = PreferredMouse.None;
            virtualkeyboard_keycap_type = KeycapType.Default;
            detection_mode              = ApplicationDetectionMode.WindowsEvents;
            excluded_programs           = new HashSet <string>();
            //additional_profiles = new Dictionary<string, GenericApplicationProfileManager>();
            devices_disable_keyboard = false;
            devices_disable_mouse    = false;
            devices_disable_headset  = false;
            devices_disabled         = new HashSet <Type>();
            OverlaysInPreview        = false;

            //Blackout and Night theme
            time_based_dimming_enabled      = false;
            time_based_dimming_affect_games = false;
            time_based_dimming_start_hour   = 21;
            time_based_dimming_start_minute = 0;
            time_based_dimming_end_hour     = 8;
            time_based_dimming_end_minute   = 0;

            nighttime_enabled      = true;
            nighttime_start_hour   = 20;
            nighttime_start_minute = 0;
            nighttime_end_hour     = 7;
            nighttime_end_minute   = 0;

            //// Idle Effects
            idle_type  = IdleEffects.None;
            idle_delay = 5;
            idle_speed = 1.0f;
            idle_effect_primary_color   = Color.FromArgb(0, 255, 0);
            idle_effect_secondary_color = Color.FromArgb(0, 0, 0);
            idle_amount    = 5;
            idle_frequency = 2.5f;

            //Overlay Settings
            volume_overlay_settings = new VolumeOverlaySettings();
            skype_overlay_settings  = new SkypeOverlaySettings();

            //ProfileOrder = new List<string>(ApplicationProfiles.Keys);

            VarRegistry = new VariableRegistry();
        }