Exemplo n.º 1
0
 /// <summary>更新模块
 /// </summary>
 public void Update(ModuleEditableInfo info, string verifyType, int isVisiable)
 {
     if (_status == ModuleStatus.Locked.ToString())
     {
         throw new ValidateException("该模块处于锁定状态无法更新,请先解锁");
     }
     Assert.IsNotInEnum("是否可见", typeof(BoolEnum), isVisiable);
     ApplyEvent(new ModuleUpdated(info, verifyType, isVisiable));
 }
Exemplo n.º 2
0
 public ModuleUpdated(ModuleEditableInfo info, string verifyType, int isVisiable)
 {
     Info       = info;
     VerifyType = verifyType;
     IsVisiable = isVisiable;
 }