/// <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(); } }
public JMoneySystem() { JMoney = new JMoneyLogs(); //StorageBalanceList = new List<JStorageAmount>(); MoneyLogFilePath = string.Empty; }