コード例 #1
0
        public override CardListLineCollection AsCardListLine(string argTitle = "Date Detail")
        {
            CardListLineCollection DateModelCard = new CardListLineCollection();

            if (this.Valid)
            {
                DateModelCard = new CardListLineCollection("Date Detail")
                {
                    new CardListLine("Date:", this.LongDate),
                    new CardListLine("Val:", this.GVal),
                    new CardListLine("C Format:", this.GCformat),
                    new CardListLine("Type:", this.GValType.ToString(), this.GValType != DateValType.unknown),
                    new CardListLine("Quality:", this.GQuality.ToString(), this.GQuality != DateQuality.unknown),
                    new CardListLine("Dual Dated:", this.GDualdated, true),
                    new CardListLine("New Year:", this.GNewYear),
                };
            }

            if (!(string.IsNullOrEmpty(argTitle)))
            {
                DateModelCard.Title = argTitle;
            }

            return(DateModelCard);
        }
コード例 #2
0
        public override CardListLineCollection AsCardListLine(string argTitle = null)
        {
            CardListLineCollection DateModelCard = new CardListLineCollection();

            if (this.Valid)
            {
                DateModelCard = new CardListLineCollection
                {
                    new CardListLine("Date Type:", "Val"),
                    new CardListLine("Notional Date:", this.LongDate),
                    new CardListLine("Val:", this.GVal),
                    new CardListLine("C Format:", this.GCformat),
                    new CardListLine("Type:", this.GValTypeAsString),
                    new CardListLine("Quality:", this.GQuality),
                    new CardListLine("Dual Dated:", this.GDualdated),
                    new CardListLine("New Year:", this.GNewYear),
                };
            }

            if (!(string.IsNullOrEmpty(argTitle)))
            {
                DateModelCard.Title = argTitle;
            }

            return(DateModelCard);
        }
コード例 #3
0
        /// <summary>
        /// Replaces the item list with the specified arguments.
        /// </summary>
        /// <param name="theArgs">
        /// The arguments.
        /// </param>
        public void Set(CardListLineCollection theArgs)
        {
            if (theArgs is null)
            {
                return;
            }

            Items.Clear();

            foreach (CardListLine item in theArgs)
            {
                Items.Add(item);
            }
        }
コード例 #4
0
        public override CardListLineCollection AsCardListLine(string argTitle = "Date Detail")
        {
            CardListLineCollection DateModelCard = new CardListLineCollection();

            if (this.Valid)
            {
                DateModelCard = new CardListLineCollection
                {
                    new CardListLine("Date:", this.LongDate),
                    new CardListLine("Str:", this.GVal),
                };
            }

            if (!(string.IsNullOrEmpty(argTitle)))
            {
                DateModelCard.Title = argTitle;
            }

            return(DateModelCard);
        }