예제 #1
0
 /// <summary>
 /// 创建CtrlUnit。
 /// </summary>
 ///  <returns>CtrlUnit</returns>
 public static CtrlUnit CreateCtrlUnit()
 {
     var ctrlUnit = new CtrlUnit
     {
     };
     ctrlUnit.GenerateNewIdentity();
     return ctrlUnit;
 }
예제 #2
0
 /// <summary>
 /// 创建
 /// </summary>
 /// <param name="description">描述</param>
 /// <param name="name">名称</param>
 /// <returns></returns>
 public static CtrlUnit CreateCtrlUnit( string name,string description)
 {
     var ctrlUnit = new CtrlUnit
     {
     };
     ctrlUnit.GenerateNewIdentity();
     ctrlUnit.SetDescription(description);
     ctrlUnit.SetName(name);
     return ctrlUnit;
 }