Example #1
0
        public void PartTypeTreeTest()
        {
            int typ_id = 15270; //   525 i (192 HP) Modification
            //int mod_id = 1449;  //   BMW 5 (E39) Model
            int st_item_id = 10001; //  Номер айтема в дереве поиска

            using( TecdocBaseDataContext ctx = new TecdocBaseDataContext() )
            {
                ctx.Log = new DebuggerWriter();
                var tree = ctx.GetTree( typ_id );

                var itemName = ctx.GetTreeItem( typ_id, st_item_id );
            }
        }
Example #2
0
 public static List<SearchTreeNodeHelper> GetTree( int modificationId )
 {
     using( var ctx = new TecdocBaseDataContext() )
     {
         return ctx.GetTree( modificationId );
     }
 }