?? processtime.cs
字號:
using System;
namespace chapter3
{
/// <summary>
/// ProcessTime 的摘要說明。
/// </summary>
public delegate void TimeEventHandler(string s);
public class MyTime1
{
public event TimeEventHandler Timer;
public void OnTimer(string s)
{
if(null !=Timer) Timer(s);
}
}
public class ProcessTime
{
public void GenerateTime(string s)
{
Console.WriteLine("Hello {0}!The time is {1} now ",s,DateTime.Now);
}
public ProcessTime()
{
//
// TODO: 在此處添加構造函數邏輯
//
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -