public bool InitializeControllerTypeInfo() { bool resultFlag = false; try { //if (!IsInitializedForControllerType()) //{ // foreach (Model.ControllerType type in Enum.GetValues(typeof(SCA.Model.ControllerType))) // { // if (type != Model.ControllerType.NONE && type != Model.ControllerType.UNCOMPATIBLE) // { // StringBuilder sbControllerTypeSQL = new StringBuilder("Insert into ControllerType(ID,Name,DeFireSystemCategoryID) values("); // sbControllerTypeSQL.Append(((int)type).ToString() + ",'"); // sbControllerTypeSQL.Append(type + "',0);"); // _databaseService.ExecuteBySql(sbControllerTypeSQL); // } // } //} //return true; if (!IsInitializedForControllerType()) { resultFlag = _dbFileVersionService.AddControllerTypeInfo(); } } catch (Exception ex) { return(false); } return(resultFlag); }