📄 datasourcefactory.cs
字号:
/*
* Author : 方伍
* Date: 2007-12-10
* Blog: http://www.cnblogs.com/binbin1845
* QQ: 32418201
* Email: binbin1845@126.com
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace ADApplication
{
public class DataSourceFactory
{
public IDataSource CreateDataSource(DataSourceType type)
{
IDataSource source;
switch (type)
{
case DataSourceType.Grid:
source = new GridDataSource();
break;
case DataSourceType.List:
source = new ListDataSource();
break;
case DataSourceType.Tree:
source = new TreeDataSource();
break;
default:
source = null;
break;
}
return source;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -