예제 #1
0
        protected override void OnInitializeInRuntime()
        {
            base.OnInitializeInRuntime();

            CBFDatabaseServices     db  = new CBFDatabaseServices();
            IEnumerable <CBFModels> CBF = db.GetAllCBF();

            foreach (var i in CBF)
            {
                i.Family = db.GetAllFamily(i);
            }
            CBFModel = CBF;
        }
예제 #2
0
        private void GetData()
        {
            CBFDatabaseServices db = new CBFDatabaseServices();
            ObservableCollection <CBFModels> CBF = db.GetAllCBF();

            foreach (var i in CBF)
            {
                i.Family = db.GetAllFamily(i);
            }
            CBFModel = CBF;

            InsertDbTest insert = new InsertDbTest();

            insert.CountNum();
            count = insert.Count;
        }