コード例 #1
0
        public void applyPreset(Data_Config.Preset newPreset)
        {
            sizeType   = newPreset.SizeType;
            customSize = newPreset.Size;

            //applyNewAnalogLayout(newPreset.AnalogClockLayout);
            //setColourScheme(newPreset.DigitalColours);

            resizeForm();
        }
コード例 #2
0
        public AdvancedForm(Data_Config.AnalogLayout layout, int currDefaultDisplayType, Data_Config.Preset currPreset)
        {
            analogLayout    = layout;
            defaultDispType = currDefaultDisplayType;
            preset          = currPreset;


            InitializeComponent();

            Microsoft.Win32.SystemEvents.DisplaySettingsChanged += new EventHandler(SystemEvents_DisplaySettingsChanged);

            // Collects all the radio buttons in the Size tab
            RadioSizeButtons = advTab.TabPages[(int)TAB.SIZE].Controls.OfType <RadioButton>().ToArray();

            label_currentScreenSize.Text = ": " + preset.Size;

            lbl_applyAnalogChanges.Hide();
        }