コード例 #1
0
        public void Clear(bool RaiseChangedEvent)
        {
            if (RaiseChangedEvent)
            {
                Name = String.Empty;
                Host = String.Empty;
                Port = DEFAULTPORT;

                StringDictionary = String.Empty;
                Username         = String.Empty;
                Password         = String.Empty;
                Character        = String.Empty;
                IgnoreList.Clear();
            }
            else
            {
                name             = String.Empty;
                host             = String.Empty;
                port             = DEFAULTPORT;
                stringdictionary = String.Empty;
                username         = String.Empty;
                password         = String.Empty;
                character        = String.Empty;
                IgnoreList.Clear();
            }
        }
コード例 #2
0
ファイル: BundleConfig.cs プロジェクト: hdm2/agenda
        public static void ConfigureIgnoreList(IgnoreList ignoreList)
        {
            ignoreList.Clear();

            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
        }
コード例 #3
0
 public static void ResetIgnorePatterns(IgnoreList ignoreList)
 {
     ignoreList.Clear();
     ignoreList.Ignore("*.intellisense.js");
     ignoreList.Ignore("*-vsdoc.js");
     ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
     //ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
     ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
 }
コード例 #4
0
 public static void ResetIgnorePatterns(IgnoreList ignoreList)
 {
     ignoreList.Clear();
     ignoreList.Ignore("*.intellisense.js");
     ignoreList.Ignore("*-vsdoc.js");
     ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
     //ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
     ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
 }
コード例 #5
0
        private static void SetupIgnorePatterns(IgnoreList ignoreList)
        {
            if (ignoreList == null)
                throw new ArgumentNullException("ignoreList");

            ignoreList.Clear();
            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
        }
コード例 #6
0
        private static void SetupIgnorePatterns(IgnoreList ignoreList)
        {
            if (ignoreList == null)
            {
                throw new ArgumentNullException("ignoreList");
            }

            ignoreList.Clear();
            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
        }
コード例 #7
0
ファイル: BundleConfig.cs プロジェクト: tianfengs/AbpPractice
        public static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
        {
            if (ignoreList == null)
            {
                throw new ArgumentNullException("ignoreList");
            }

            ignoreList.Clear();

            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*.debug.js");
            ignoreList.Ignore("*-vsdoc.js");
        }
コード例 #8
0
        public static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
        {
            if (ignoreList == null)
            {
                throw new ArgumentNullException("ignoreList");
            }

            ignoreList.Clear();

            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*.debug.js");
            ignoreList.Ignore("*-vsdoc.js");
        }
コード例 #9
0
        protected static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
        {
            if (ignoreList == null)
            {
                throw new ArgumentNullException("ignoreList");
            }

            ignoreList.Clear();
            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
            ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
            ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
        }
コード例 #10
0
        public static void ConfigureIgnoreList(IgnoreList ignoreList)
        {
            if (ignoreList == null)
            {
                throw new ArgumentNullException("ignoreList");
            }

            ignoreList.Clear(); // Clear the list, then add the new patterns.

            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
            // ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
            ignoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
        }
コード例 #11
0
 public static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
 {
     if (ignoreList != null)
     {
         ignoreList.Clear();
         ignoreList.Ignore("*.intellisense.js");
         ignoreList.Ignore("*-vsdoc.js");
         ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
         //ignoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);
         //signoreList.Ignore("*.min.css", OptimizationMode.WhenDisabled);
         return;
     }
     else
     {
         throw new ArgumentNullException("ignoreList");
     }
 }
コード例 #12
0
        public void ClearTest()
        {
            BundleContext context = new BundleContext();
            IgnoreList    list    = new IgnoreList();

            list.Ignore("*");
            list.Ignore("*.ignore");
            list.Ignore("_*");
            list.Ignore("ignore.me");

            Assert.IsTrue(list.ShouldIgnore(context, ".ignore"));
            Assert.IsTrue(list.ShouldIgnore(context, "blah.IGNore"));
            Assert.IsTrue(list.ShouldIgnore(context, "_whatever"));
            Assert.IsTrue(list.ShouldIgnore(context, "IGNORE.me"));

            list.Clear();
            Assert.IsFalse(list.ShouldIgnore(context, ".ignore"));
            Assert.IsFalse(list.ShouldIgnore(context, "blah.IGNore"));
            Assert.IsFalse(list.ShouldIgnore(context, "_whatever"));
            Assert.IsFalse(list.ShouldIgnore(context, "IGNORE.me"));
        }
コード例 #13
0
 /// <summary>
 /// Clears to user dictionary.
 /// </summary>
 public static void ClearUserDictionary()
 {
     UserDictionary = null;
     UserDictionaryWords.Clear();
     IgnoreList.Clear();
 }
コード例 #14
0
 public void ClearIgnoreList()
 {
     IgnoreList.Clear();
 }