private void GetConfigRulesFolder()
        {
            var tDir = ConfigTools.SharedAppConfigGet("RulesDirectory");

            if (string.IsNullOrEmpty(tDir))
            {
                tDir = ConfigTools.AppConfigGet("RulesDirectory");

                while (tDir.LastIndexOf(@"\\") == tDir.Length - 2)
                {
                    tDir = tDir.Substring(0, tDir.Length - 1);
                }
            }

            if (string.IsNullOrEmpty(tDir))
            {
                RulesDirectory = Environment.SpecialFolder.Desktop.ToString();
            }
            else
            {
                RulesDirectory = tDir;
            }
        }