public frmWellItem(DB db, tblWell well) { InitializeComponent(); _well = well; Fill(); }
public frmWellItem(DB db) { InitializeComponent(); _db = db; _adeStatus = ADEStatus.Add; }
public static DB GetDB() { if (_db == null) { _db = new DB(); } return _db; }
/// <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; }
/// <summary> /// /// </summary> /// <returns></returns> private DB GetDB() { if (_db == null) { _db = DBFactory.CreateDB(); } return _db; }