Exemple #1
0
        public frmWellItem(DB db, tblWell well)
        {
            InitializeComponent();

            _well = well;
            Fill();
        }
Exemple #2
0
        public frmWellItem(DB db)
        {
            InitializeComponent();

            _db = db;
            _adeStatus = ADEStatus.Add;
        }
Exemple #3
0
 public static DB GetDB()
 {
     if (_db == null)
     {
         _db = new DB();
     }
     return _db;
 }
Exemple #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        private object GetGwlDataSource(DB db)
        {
            var q = from s in db.tblGwl
                    select s;

            List<tblGwl> list = q.ToList();
            if (tsbFind.Checked)
            {
                KeyValueCollection kvs = ucConditionWrapper1.GetConditionKeyValues();
                list = Match(list, kvs);
            }
            return list;
        }
Exemple #5
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 private DB GetDB()
 {
     if (_db == null)
     {
         _db = DBFactory.CreateDB();
     }
     return _db;
 }