Exemplo n.º 1
0
        /// <summary>
        /// 해당 spreadsheet_name 에서
        /// reference_key가 reference_value와 일치하는
        /// key 의 값을 찾는다.
        /// 없으면 null
        /// </summary>
        /// <param name="spreadsheet_name"></param>
        /// <param name="key"></param>
        /// <param name="reference_key"></param>
        /// <param name="reference_value"></param>
        /// <returns></returns>
        public Variable Find(string spreadsheet_name, string key, string reference_key, Variable reference_value)
        {
            SpreadSheetPage p = null;

            if (Pages.TryGetValue(spreadsheet_name, out p))
            {
                return(p.Find(key, reference_key, reference_value));
            }
            return(null);
        }
Exemplo n.º 2
0
 public TotalSpreadSheet(Dictionary <string, object> rawdata)
 {
     _rawdata = rawdata;
     Pages    = new Dictionary <string, SpreadSheetPage>();
     foreach (var kv in rawdata)
     {
         SpreadSheetPage p = new SpreadSheetPage(kv.Key, kv.Value as List <object>);
         Pages.Add(kv.Key, p);
     }
 }