예제 #1
0
        static void Main(string[] args)
        {
            try
            {
                TextStorage ts = TextStorage.Instance;
                Console.WriteLine(" \n Text with all separators: ");
                ts.showTextWithSeparators(false);

                TextAnalyser ta = new FiltersAnalyser(ts, 1);
                ta.check();
                ta = new ExclusionsAnalyser(ts, -1);
                ta.check();

                Console.WriteLine(" \n\n Result: ");
                ts.showTextWithSeparators(true, ConsoleColor.DarkMagenta);
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            try
            {
                TextStorage ts = TextStorage.Instance;
                Console.WriteLine(" \n Text with all separators: ");
                ts.showTextWithSeparators(false);

                TextAnalyser ta = new FiltersAnalyser(ts, 1);
                ta.check();
                ta = new ExclusionsAnalyser(ts, -1);
                ta.check();

                Console.WriteLine(" \n\n Result: ");
                ts.showTextWithSeparators(true, ConsoleColor.DarkMagenta);
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }