private void UpdateActiveFormStyle()
        {
            FormStyle style = null;

            if (UseFormStyleManager)
            {
                // try to load specified style
                if (!String.IsNullOrEmpty(FormStyleName))
                {
                    style = FormStyleManager.GetStyle(FormStyleName);
                }

                // if it wasn't found try to load default style
                if (style == null)
                {
                    style = FormStyleManager.GetDefaultStyle();
                }
            }
            else
            {
                style = FormStyle;
            }
            ActiveFormStyle = style;
        }
Example #2
0
 private void toolStyleList_SelectedIndexChanged(object sender, EventArgs e)
 {
     ActiveStyle = FormStyleManager.GetStyle((string)toolStyleList.SelectedItem);
 }