Esempio n. 1
0
 /// <summary>
 /// NOT USE THIS METHOD!
 /// This is for obscufator only!
 /// </summary>
 public static Style Deserialize()
 {
     Style data = new Style();
     XmlSerializer serializer = new XmlSerializer(typeof(Style));
     StreamReader reader = new StreamReader("");
     data = (Style)serializer.Deserialize(reader);
     reader.Close();
     return data;
 }
        public void SetStyle(Data.Style style)
        {
            this.BackColor                  = style.WindowBackColor;
            this.ForeColor                  = style.ForeColor;
            this.tabs.BackColor             = style.WindowBackColor;
            this.serversTreeLabel.BackColor = style.ControlBackColor;
            this.serversTreeLabel.ForeColor = style.ForeColor;

            this.addServerMenu.Image = Icons.AddColor(Properties.Resources.MenuAdd, style.ForeColor);
            this.settingsMenu.Image  = Icons.AddColor(Properties.Resources.MenuSettings, style.ForeColor);
            this.languageMenu.Image  = Icons.AddColor(Properties.Resources.MenuLanguage, style.ForeColor);

            this.serversTree.SetStyle(style);
            this.addServerMenuItems.SetStyle(style);
            this.settingsMenuItems.SetStyle(style);
            this.languageMenuItems.SetStyle(style);
            this.tabs.SetStyle(style);
        }