123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using static wpf_data_json.models.Globals;
- using System.Threading.Tasks;
- using System.Collections.Generic;
- using wpf_data_json;
- using CsvHelper;
- using System.Diagnostics;
- using wpf_data_json.models;
- using static wpf_data_json.MainWindow;
- using System.IO;
- using System.Globalization;
- using System.Runtime.Serialization;
- namespace wpf_data_json.models
- {
- [DataContract]
- public class People
- {
- [DataMember]
- public string Name { get; set; }
- [DataMember]
- public int Age { get; set; }
- [DataMember]
- public int Price { get; set; }
- [DataMember]
- public string Gender { get; set; }
- [DataMember]
- public string Place { get; set; }
- [DataMember]
- public bool IsFavorite { get; set; }
- [DataMember(Name = "dateOfConnections")]
- private string? stringDate { get; set; }
- [IgnoreDataMember]
- public DateTime? dateOfConnections
- {
- get
- {
- return stringDate == null ? null : DateTime.Parse(stringDate);
- }
- set
- {
- stringDate = value.ToString();
- }
- }
- }
- }
|