Ejemplo n.º 1
0
 public ChooseOilWell(YJXGPJ parent)
 {
     InitializeComponent();
     DataContext          = this;
     yjxgpl               = parent;
     WaterWellsCollection = SelectWell();
     DataSource           = WaterWellsCollection.Copy();
 }
Ejemplo n.º 2
0
 public ChooseWell(Page parent)
 {
     InitializeComponent();
     DataContext          = this;
     parentPage           = parent;
     WaterWellsCollection = SelectWell();
     DataSource           = WaterWellsCollection.Copy();
 }
Ejemplo n.º 3
0
        private void wellname_TextChanged(object sender, TextChangedEventArgs e)
        {
            string name = wellname.Text.Trim();

            DataSource.Clear();
            if (string.IsNullOrEmpty(name))
            {
                WaterWellsCollection.Select().OfType <DataRow>().ToList().ForEach(x => DataSource.Rows.Add(x.ItemArray));
            }
            else
            {
                WaterWellsCollection.Select("井号 like '%" + name + "%'").OfType <DataRow>().ToList().ForEach(x => DataSource.Rows.Add(x.ItemArray));
            }
        }