QueryCulture() public method

public QueryCulture ( ) : bool
return bool
Esempio n. 1
0
        }         // StartArticleSamples

        // ----------------------------------------------------------------------
        private static void StartCalendarDemo()
        {
            ConsoleTool.WriteSeparatorLine();
            Console.WriteLine("Itenso Time Period Demo");

            TimePeriodDemoData demoData = new TimePeriodDemoData();

            // culture
            if (demoData.QueryCulture() == false)
            {
                return;
            }

            string periodType = "y";

            while (!string.IsNullOrEmpty(periodType))
            {
                try
                {
                    if (QueryPeriodData(ref periodType, demoData) == false)
                    {
                        break;
                    }
                }
                catch (Exception e)
                {
                    Console.WriteLine("input error: " + e.Message);
                }
                if (string.IsNullOrEmpty(periodType))
                {
                    break;
                }
                ShowPeriodData(periodType, demoData);
            }
        }         // Main
Esempio n. 2
0
        // ----------------------------------------------------------------------
        private static void StartCalendarDemo()
        {
            ConsoleTool.WriteSeparatorLine();
            Console.WriteLine( "Itenso Time Period Demo" );

            TimePeriodDemoData demoData = new TimePeriodDemoData();

            // culture
            if ( demoData.QueryCulture() == false )
            {
                return;
            }

            string periodType = "y";
            while ( !string.IsNullOrEmpty( periodType ) )
            {
                try
                {
                    if ( QueryPeriodData( ref periodType, demoData ) == false )
                    {
                        break;
                    }
                }
                catch ( Exception e )
                {
                    Console.WriteLine( "input error: " + e.Message );
                }
                if ( string.IsNullOrEmpty( periodType ) )
                {
                    break;
                }
                ShowPeriodData( periodType, demoData );
            }
        }