Beispiel #1
0
        public void ApplyTheme(XCoolForm form, string sThemeXml)
        {
            Debug.Assert(form != null);
            Debug.Assert(!string.IsNullOrEmpty(sThemeXml));

            try
            {
                m_xcf = form;
                m_xmlTheme.LoadXml(sThemeXml);
                LoadTitleBarXmlPresets();
                LoadTitlebarButtonsXmlPresets();
                LoadBorderXmlPresets();
                LoadIconHolderXmlPresets();
                LoadFormBackColor();
                LoadMenuIconXmlPresets();
                LoadStatusBarXmlPresets();

                m_xcf.Invalidate();
            }
            catch (XmlException e)
            {
                MessageBox.Show("Error while loading theme file." + e.InnerException.Message, "Theme error");
            }
        }
 public XTitleBarIconHolder(
     XCoolForm xcf)
 {
     m_owner = xcf;
 }