Exemplo n.º 1
0
        public frmWellItem(DB db, tblWell well)
        {
            InitializeComponent();

            _well = well;
            Fill();
        }
Exemplo n.º 2
0
        public frmWellItem(DB db)
        {
            InitializeComponent();

            _db = db;
            _adeStatus = ADEStatus.Add;
        }
Exemplo n.º 3
0
 public static DB GetDB()
 {
     if (_db == null)
     {
         _db = new DB();
     }
     return _db;
 }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 private DB GetDB()
 {
     if (_db == null)
     {
         _db = DBFactory.CreateDB();
     }
     return _db;
 }