internal void FromDateGroupItem(DateGroupItem dgi)
        {
            this.SetAllNull();

            this.Year = dgi.Year.Value;
            if (dgi.Month != null)
            {
                this.Month = dgi.Month.Value;
            }
            if (dgi.Day != null)
            {
                this.Day = dgi.Day.Value;
            }
            if (dgi.Hour != null)
            {
                this.Hour = dgi.Hour.Value;
            }
            if (dgi.Minute != null)
            {
                this.Minute = dgi.Minute.Value;
            }
            if (dgi.Second != null)
            {
                this.Second = dgi.Second.Value;
            }
            this.DateTimeGrouping = dgi.DateTimeGrouping.Value;
        }
Esempio n. 2
0
 private void SetAllNull()
 {
     this.Year = (ushort)DateTime.Now.Year;
     this.Month = null;
     this.Day = null;
     this.Hour = null;
     this.Minute = null;
     this.Second = null;
     this.DateTimeGrouping = DateTimeGroupingValues.Year;
 }
 private void SetAllNull()
 {
     this.Year             = (ushort)DateTime.Now.Year;
     this.Month            = null;
     this.Day              = null;
     this.Hour             = null;
     this.Minute           = null;
     this.Second           = null;
     this.DateTimeGrouping = DateTimeGroupingValues.Year;
 }
 private void SetAllNull()
 {
     Year             = (ushort)DateTime.Now.Year;
     Month            = null;
     Day              = null;
     Hour             = null;
     Minute           = null;
     Second           = null;
     DateTimeGrouping = DateTimeGroupingValues.Year;
 }
Esempio n. 5
0
        internal void FromDateGroupItem(DateGroupItem dgi)
        {
            this.SetAllNull();

            this.Year = dgi.Year.Value;
            if (dgi.Month != null) this.Month = dgi.Month.Value;
            if (dgi.Day != null) this.Day = dgi.Day.Value;
            if (dgi.Hour != null) this.Hour = dgi.Hour.Value;
            if (dgi.Minute != null) this.Minute = dgi.Minute.Value;
            if (dgi.Second != null) this.Second = dgi.Second.Value;
            this.DateTimeGrouping = dgi.DateTimeGrouping.Value;
        }