コード例 #1
0
 public FormulaProgram GetProgramByLineNum(int Line)
 {
     if (this.Namespaces != null)
     {
         foreach (FormulaSpace space in this.Namespaces)
         {
             FormulaProgram programByLineNum = space.GetProgramByLineNum(Line);
             if (programByLineNum != null)
             {
                 return(programByLineNum);
             }
         }
     }
     if (this.Programs != null)
     {
         foreach (FormulaProgram program2 in this.Programs)
         {
             if (program2.InProgram(Line))
             {
                 return(program2);
             }
         }
     }
     return(null);
 }
コード例 #2
0
 public FormulaProgram FindFormulaProgram(string Path, FormulaBase fb)
 {
     if (Path == "")
     {
         Path = this.Name;
     }
     else if (!this.GroupOnly)
     {
         Path = Path + "." + this.Name;
     }
     foreach (FormulaProgram program in this.Programs)
     {
         if (string.Compare(Path + "." + program.Name, fb.GetType().ToString(), true) == 0)
         {
             return(program);
         }
     }
     foreach (FormulaSpace space in this.Namespaces)
     {
         FormulaProgram program2 = space.FindFormulaProgram(Path, fb);
         if (program2 != null)
         {
             return(program2);
         }
     }
     return(null);
 }
コード例 #3
0
 public int Add(FormulaProgram value)
 {
     return(base.List.Add(value));
 }
コード例 #4
0
 public void Remove(FormulaProgram value)
 {
     base.List.Remove(value);
 }