private void invent_Click(object sender, RoutedEventArgs e) { invent invent = new invent(IdUser); invent.Show(); this.Close(); }
private void OK_Click(object sender, RoutedEventArgs e) { var ok = db.inventory.Where(inv => inv.date == Data && inv.difference == Diff); ok.FirstOrDefault().verific = 1; db.inventory.Create(); db.SaveChanges(); invent invent = new invent(IdUser); invent.Show(); this.Close(); }