Пример #1
0
        public TestContext(IntPtr wndHandle)
        {
            WndHandle = wndHandle;
            Thread    = null;
            Recipe    = new RecipeObject();
            Value     = new TestValue();
            Counter   = new TestCounter();

            testHeadSet    = new TestHeadDataSet(AppRes.DB.Connect, null, null);
            testDataSet    = new TestDataDataSet(AppRes.DB.Connect, null, null);
            testCounterSet = new TestCounterDataSet(AppRes.DB.Connect, null, null);
            binCounterSet  = new BinCounterDataSet(AppRes.DB.Connect, null, null);
        }
Пример #2
0
        private void Load()
        {
            recipeSet.Select();

            for (int i = 0; i < recipeSet.RowCount; i++)
            {
                recipeSet.Fetch(i);

                RecipeObject item = new RecipeObject();
                item.Load(recipeSet.Name);
                keys.Add(item.RecNo, item);
                names.Add(item.Code, item);
            }
        }