Пример #1
0
 public TableNode FindTableNode(string tableName, bool throwIfNotFound)
 {
     foreach (NDOTreeNode trn in this.Nodes)
     {
         TableNode tn = trn as TableNode;
         if (tn == null)
         {
             continue;
         }
         if (tn.ToString() == tableName)
         {
             return(tn);
         }
     }
     if (throwIfNotFound)
     {
         throw new Exception("FindTableNode: Can't find table '" + tableName + "'.");
     }
     return(null);
 }