?? controller.cs
字號:
using System;
using System.Collections;
using Model;
namespace Controller
{
/// <summary>
/// Controller 的摘要說明。
/// </summary>
public class Controller : IController
{
static IController CreateHandler(string viewName)
{
switch(viewName.ToUpper())
{
case "LOGIN":
//return new
break;
}
return null;
}
public Controller()
{
//
// TODO: 在此處添加構(gòu)造函數(shù)邏輯
//
}
#region IController 成員
public IModel Execute(IDictionary colParam)
{
if(_next != null)
return _next.Execute(colParam);
return null;
}
public IController Next()
{
// TODO: 添加 Controller.Next 實現(xiàn)
return _next;
}
#endregion
protected void SetNext(IController next)
{
_next = next;
}
protected IController _next = null;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -