Exemple #1
0
        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));
            }
        }
Exemple #2
0
        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));
            }
        }