using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Desktop.Internal.Framework.Controls; namespace OliviaAddInPro.Helper { public static class HelperGlobal { public static ErrorMessageDialog msg; public static void ponMsg(String mensaje, MessageType tipo, String titulo = "OLIVIA") { msg = new ErrorMessageDialog(titulo, mensaje, tipo); msg.ShowDialog(); } public static string RevisaText(string text) { StringBuilder sb = new StringBuilder(); foreach (char c in text) { if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') { sb.Append(c); } } return sb.ToString(); } } }