⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cs

📁 P2PGrid.rar 从网上下载的一套C#源码
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace P2PGrid
{
    class Program
    {
        /// <summary>
        /// Application starts here. Create an instance of this class and use it as the main object.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            P2PApp app1 = new P2PApp();

            Console.WriteLine("Input exit to quit");          
            while (true)
            {
                string msg = Console.ReadLine();
                if (msg != null)
                {
                    if (msg == "exit")
                        break;
                    Commander u = new Commander(app1);
                    u.Excute(msg);
                }
            }
            Console.WriteLine("OK that does it! 88");
            //Clean up before finish
            app1.CloseAll();
            GC.Collect();
            GC.WaitForPendingFinalizers();            
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -