ofic.xaml.cs 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace Cafe11
  15. {
  16. /// <summary>
  17. /// Interaction logic for ofic.xaml
  18. /// </summary>
  19. public partial class ofic : Window
  20. {
  21. gr671_mkyuEntities entities;
  22. public ofic()
  23. {
  24. InitializeComponent();
  25. entities = new gr671_mkyuEntities();
  26. }
  27. private void btnnew_Click(object sender, RoutedEventArgs e)
  28. {
  29. neworder ne = new neworder();
  30. ne.Show();
  31. this.Close();
  32. }
  33. private void Window_Loaded(object sender, RoutedEventArgs e)
  34. {
  35. oftable.ItemsSource = entities.Orders.ToList();
  36. }
  37. }
  38. }