Diff of /trunk/cforge/cforge/Program.cs [r83] .. [r84]  Maximize  Restore

Switch to unified view

a/trunk/cforge/cforge/Program.cs b/trunk/cforge/cforge/Program.cs
...
...
4
using System.Linq;
4
using System.Linq;
5
using System.Reflection;
5
using System.Reflection;
6
using System.Text;
6
using System.Text;
7
using System.Threading.Tasks;
7
using System.Threading.Tasks;
8
8
9
delegate string ReadLineDelegate();
10
9
namespace cforge
11
namespace cforge
10
{
12
{
11
    class Program
13
    class Program
12
    {
14
    {
13
        static void Main(string[] args)
15
        static void Main(string[] args)
...
...
162
            Console.WriteLine(@"----------------------------------------------------------------------------");
164
            Console.WriteLine(@"----------------------------------------------------------------------------");
163
            Console.WriteLine("cforge finished.");
165
            Console.WriteLine("cforge finished.");
164
            Console.WriteLine(@"----------------------------------------------------------------------------");
166
            Console.WriteLine(@"----------------------------------------------------------------------------");
165
            Console.WriteLine("");
167
            Console.WriteLine("");
166
168
167
            Console.ReadLine();
169
            ReadLineDelegate d = Console.ReadLine;
170
            IAsyncResult result = d.BeginInvoke(null, null);
171
            result.AsyncWaitHandle.WaitOne(3000); // wait 3s
172
            if (result.IsCompleted)
173
            {
174
                string resultstr = d.EndInvoke(result);
175
            }
168
        }
176
        }
169
177
170
        static void ShowUsage()
178
        static void ShowUsage()
171
        {
179
        {
172
            // pad right 32 for description ;-)
180
            // pad right 32 for description ;-)