/// <summary> /// 创建CtrlUnit。 /// </summary> /// <returns>CtrlUnit</returns> public static CtrlUnit CreateCtrlUnit() { var ctrlUnit = new CtrlUnit { }; ctrlUnit.GenerateNewIdentity(); return ctrlUnit; }
/// <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; }