Exemple #1
0
        private void DelIdividualMatPriceBtn_Click(object sender, EventArgs e)
        {
            var ds = MatPriceTypesBS.DataSource as dynamic;

            _db.MatGroupPrices.Remove(_db.MatGroupPrices.Find(ds.Id));
            _db.SaveChanges();

            GoTopMatPricesBtn.PerformClick();
        }
Exemple #2
0
        private void simpleButton13_Click(object sender, EventArgs e)
        {
            var ds = MatPriceTypesBS.DataSource as dynamic;

            _db.MatPrices.Remove(_db.MatPrices.Find(ds.Id));
            _db.SaveChanges();

            GoTopMatPricesBtn.PerformClick();
        }