Exemplo n.º 1
0
 public static List <FormulaView> GetFmlViews(SubjectType subjectType)
 {
     if (FmlViews.ContainsKey(subjectType))
     {
         var fvd = FmlViews[subjectType];
         return(fvd.Select(fvp => fvp.Value).ToList());
     }
     return(null);
 }
Exemplo n.º 2
0
        public static void Add(FormulaView fmlView, SubjectType subjectType)
        {
            if (!FmlViews.ContainsKey(subjectType))
            {
                FmlViews.Add(subjectType, new Dictionary <string, FormulaView>());
            }
            var fvd = FmlViews[subjectType];

            fvd.Add(fmlView.Title, fmlView);
        }
Exemplo n.º 3
0
 public static FormulaView GetFmlView(SubjectType subjectType, string name)
 {
     if (FmlViews.ContainsKey(subjectType))
     {
         var fvd = FmlViews[subjectType];
         if (fvd.ContainsKey(name))
         {
             return(fvd[name]);
         }
     }
     return(null);
 }