} // 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
// ---------------------------------------------------------------------- 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 ); } }