program.cs
来自「P2PGrid.rar 从网上下载的一套C#源码」· CS 代码 · 共 37 行
CS
37 行
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 + =
减小字号Ctrl + -
显示快捷键?