StockForecastOrderJobScreen.xaml.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 PRSDesktop.Panels.StockForecast.OrderScreen;
  15. /// <summary>
  16. /// Interaction logic for StockForecastOrderJobScreen.xaml
  17. /// </summary>
  18. public partial class StockForecastOrderJobScreen : Window
  19. {
  20. public List<StockForecastOrderingJobItem> Items
  21. {
  22. get => Grid.Items;
  23. set
  24. {
  25. Grid.Items = value;
  26. Grid.Refresh(false, true);
  27. }
  28. }
  29. public StockForecastOrderJobScreen()
  30. {
  31. InitializeComponent();
  32. Grid.Refresh(true, false);
  33. }
  34. private void CancelButton_Click(object sender, RoutedEventArgs e)
  35. {
  36. DialogResult = false;
  37. Close();
  38. }
  39. private void OKButton_Click(object sender, RoutedEventArgs e)
  40. {
  41. DialogResult = true;
  42. Close();
  43. }
  44. }