public static BillGroupData GetData(Bill key) { if (!Map.ContainsKey(key)) { Map[key] = new BillGroupData(); } return(Map[key]); }
public static GroupMode IsFor(Bill key) { if (!Map.ContainsKey(key)) { Map[key] = new BillGroupData(); } return(Map[key].Mode); }
public static void SetFor(Bill key, GroupMode value) { if (!Map.ContainsKey(key)) { Map[key] = new BillGroupData(); } Map[key].Mode = value; }