📄 collections.format
字号:
private {0}Collection _{2}s = null;
/// <summary>
/// Refreshes the collection of {2}s from the underlying dataset
/// </summary>
internal void refresh{2}s()
{
if (_{2}s == null) _{2}s = new {0}Collection();
((IList)_{2}s).Clear();
DataRow[] cr = row.GetChildRows("{1}{3}");
foreach( DataRow chld in cr)
{
{0} obj = new {0}(base.DataContext, chld);
_{2}s.Add( obj );
}
// add after, so that events wont be fired
_{2}s.Parent = this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -