public ItemHistorialTime(HistoryTime parent,XmlNode nodoData) : this(parent) { Inicio = new DateTime(Convert.ToInt64(nodoData.ChildNodes[(int)XmlCampos.Inicio].InnerText)); Tiempo =new TimeSpan(Convert.ToInt64(nodoData.ChildNodes[(int)XmlCampos.Tiempo].InnerText)); RichDescription = nodoData.ChildNodes[(int)XmlCampos.Descripcion].InnerText.DescaparCaracteresXML(); }
public ItemHistorialTime(HistoryTime parent) { this.parent = parent; InitializeComponent(); txtTiempoHecho.MouseLeftButtonUp += EliminarEvent; txtFechaInicio.MouseLeftButtonUp += EliminarEvent; }
public ItemHistorialTime(HistoryTime parent,DateTime fecha, TimeSpan tiempo) : this(parent) { Inicio = fecha; Tiempo = tiempo; }
public ItemHistorialTime(HistoryTime parent, DateTime inicio) : this(parent) { Inicio = inicio; Tiempo = DateTime.Now-inicio; }
public static void AddItemsXml(HistoryTime parent,XmlNode nodoItemCronos) { if (parent == null || nodoItemCronos == null) throw new ArgumentNullException(); for (int i = 0, f = nodoItemCronos.ChildNodes.Count; i < f; i++) try { parent.Add(new ItemHistorialTime(parent,nodoItemCronos.ChildNodes[i])); } catch { } }