示例#1
0
        public void LoadDataModel(string path)
        {
            var json = File.ReadAllText(path);

            _dataModel = JsonConvert.DeserializeObject <DataModel>(json);
        }
示例#2
0
 public Controller()
 {
     _defaultMonth = DateTime.Now.Month;
     _dataModel    = new DataModel();
 }