public string this[string columnName] { get { string errMsg = null; switch (columnName) { case nameof(MenuId): if (MenuId == null || MenuId.Trim().Length == 0) { errMsg = "请输入 Banner 唯一标识"; } break; case nameof(DllPath): if (DllPath == null || DllPath.Trim().Length == 0) { errMsg = "请输入 dll 路径"; } break; case nameof(EntryFunction): if (EntryFunction == null || EntryFunction.Trim().Length == 0) { errMsg = "请输入入口函数名称"; } break; } _verifyDictionary[columnName] = errMsg != null; return(errMsg); } }
internal void AddEntry(EntryFunction entry) { _entryEvent += entry; }