Ejemplo n.º 1
0
 private void applySettingsExecute()
 {
     TBSettings.Save();
     settingsChanged = false;
 }
Ejemplo n.º 2
0
        protected override void updateRecentFilesSettings(string templatesPath)
        {
            if (templatesPath != null && templatesPath != "")
            {
                string first  = TBSettings.FirstRecentTemplates;
                string second = TBSettings.SecondRecentTemplates;
                string third  = TBSettings.ThirdRecentTemplates;
                string fourth = TBSettings.FourthRecentTemplates;
                string fifth  = TBSettings.FifthRecentTemplates;

                string limbo = templatesPath;

                if (limbo == first)
                {
                    TBSettings.Save();
                    return;
                }
                else
                {
                    TBSettings.FirstRecentTemplates = limbo;
                    limbo = first;
                }

                if (limbo == second)
                {
                    TBSettings.Save();
                    return;
                }
                else
                {
                    TBSettings.SecondRecentTemplates = limbo;
                    limbo = second;
                }

                if (limbo == third)
                {
                    TBSettings.Save();
                    return;
                }
                else
                {
                    TBSettings.ThirdRecentTemplates = limbo;
                    limbo = third;
                }

                if (limbo == fourth)
                {
                    TBSettings.Save();
                    return;
                }
                else
                {
                    TBSettings.FourthRecentTemplates = limbo;
                    limbo = fourth;
                }

                if (limbo == fifth)
                {
                    TBSettings.Save();
                    return;
                }
                else
                {
                    TBSettings.FifthRecentTemplates = limbo;
                }

                TBSettings.Save();
            }
        }