Example #1
0
 /// <summary>
 ///     创建基本构型
 /// </summary>
 /// <param name="position"></param>
 /// <param name="description"></param>
 /// <param name="item"></param>
 /// <param name="parentAcConfig"></param>
 /// <param name="basicConfigGroup"></param>
 /// <returns></returns>
 public static BasicConfig CreateBasicConfig(int position, string description, Item item,
     AcConfig parentAcConfig, BasicConfigGroup basicConfigGroup)
 {
     var basicConfig = new BasicConfig();
     basicConfig.GenerateNewIdentity();
     basicConfig.CreateDate = DateTime.Now;
     basicConfig.SetPosition((Position)position);
     basicConfig.SetDescription(description);
     basicConfig.SetItem(item);
     basicConfig.SetParentItem(parentAcConfig);
     basicConfig.SetBasicConfigGroup(basicConfigGroup);
     return basicConfig;
 }
Example #2
0
 /// <summary>
 ///     创建BasicConfig。
 /// </summary>
 /// <returns>BasicConfig</returns>
 public static BasicConfig CreateBasicConfig()
 {
     var basicConfig = new BasicConfig();
     basicConfig.GenerateNewIdentity();
     return basicConfig;
 }