Ejemplo n.º 1
0
 private bool IsNameValid(string oldName, string change, ref string info, string newServiceName)
 {
     NameValidTool tool = new NameValidTool();
     if (!tool.IsNameValid(newServiceName))
     {
         info = GeneralResource.MESSAGE_INVALID_NAME;
         return false;
     }
     if (!this.IsChangeNameExist(newServiceName, oldName, change))
     {
         info = TrafficMapResource.TRAFFIC_NAME_EXISTED;
         return false;
     }
     return true;
 }
Ejemplo n.º 2
0
 private bool IsNameValid(string newMobName, string oldName, string change, ref string info)
 {
     NameValidTool tool = new NameValidTool();
     if (!tool.IsNameValid(newMobName))
     {
         info = GeneralResource.MESSAGE_INVALID_NAME;
         return false;
     }
     return this.IsChangeNameExist(newMobName, oldName, change, ref info);
 }