Exemple #1
0
 /// <summary>
 /// 載入 Money Log 資料檔
 /// </summary>
 /// <param name="file_path"></param>
 public void Load(string file_path)
 {
     if (File.Exists(file_path))
     {
         string ss = File.ReadAllText(file_path, Encoding.Unicode);
         JMoney = JsonConvert.DeserializeObject <JMoneyLogs>(ss);
         JMoney.MoneyLogList.Sort(new MoneyLogComparer()); //帳目紀錄排序
         RecalcStorageBalance();
     }
 }
Exemple #2
0
 public JMoneySystem()
 {
     JMoney = new JMoneyLogs();
     //StorageBalanceList = new List<JStorageAmount>();
     MoneyLogFilePath = string.Empty;
 }