private void set_default_tab() { string styleName = Grimoire.Utilities.OPT.GetString("tab.default_style"); bool useDefault = (styleName != null && styleName != "NONE"); if (useDefault) { lManager.Enter(Logs.Sender.MAIN, Logs.Level.NOTICE, "Automatically loading default style."); tManager.Create((Style)Enum.Parse(typeof(Style), styleName)); } }
private void set_default_tab() { string styleName = ConfigMan["DefaultStyle"]; bool useDefault = (styleName != null && styleName != "NONE"); if (useDefault) { lManager.Enter(Sender.MAIN, Level.NOTICE, "Automatically loading default style."); tManager.Create((Style)Enum.Parse(typeof(Style), styleName)); } }