Esempio n. 1
0
        protected void SearchRecord()
        {
            using (GarageDBEntities db = new GarageDBEntities())
            {
                var quer   = dGrid.SelectedItem as Cars;
                var search = db.Cars.Where(r => r.id == quer.id).FirstOrDefault();
                _ID = search.id;

                Models.RecordCar rec = new Models.RecordCar();
                rec.Owner = this;
                rec.Show();
            }
        }
Esempio n. 2
0
 private void TextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     // Открытие формирования новой записи
     Models.RecordCar recCar = new Models.RecordCar();
     recCar.Show();
 }