Esempio n. 1
0
        public override void Execute()
        {
            EStyles style;
            var     settingsProvider = Provider.Get();
            var     section          = settingsProvider.LoadSection("BasicWindowSettings");
            bool    enumParseOk      = Enum.TryParse(section.GetSetting("LookAndFeel", "Default").Value, out style);

            if (enumParseOk)
            {
                var appearance = new SetAppearance();
                appearance.SetLookAndFeel(style, section.GetSetting <string>("Skin", null).Value);
            }
        }
Esempio n. 2
0
        private void rgStyles_SelectedIndexChanged(object sender, EventArgs e)
        {
            var group = sender as RadioGroup;

            Debug.Assert(group != null, "group != null");
            _style = GetStyleAsEnum(group.EditValue.ToString());

            lbSkins.Enabled = (_style == EStyles.Skin);

            var appearance = new SetAppearance();

            appearance.SetLookAndFeel(_style, lbSkins.SelectedValue.ToString());
        }