using ArcGIS.Desktop.Framework.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OliviaAddInPro { public abstract class PanelViewModelBase : PropertyChangedBase { #region Properties public abstract string DisplayName { get; } #endregion Properties } //****************************************************** public static class PanelGlobal { public static bool IsValid(string str, int ini, int fin) { int i; return int.TryParse(str, out i) && i >= ini && i <= fin; } /** * Dado un tiempo en minutos devuelve las horas modulo 60 y los minutos restantes */ public static string Hm_int2str(double t) { int[] hm = { 0, 0 }; hm[0] = (int)(t / 60); hm[1] = (int)(t - hm[0] * 60); return String.Format("%dd:%dd",hm[0], hm[1]); } public static int Hm_str2int(string hm) { int t=0; return t; } } }