RecipeBody.xaml.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Microsoft.Win32;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace B20UVLog.Pages
  17. {
  18. /// <summary>
  19. /// RecipeBody.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class RecipeBody : Page
  22. {
  23. public RecipeBody()
  24. {
  25. InitializeComponent();
  26. }
  27. private void BtnExport_Click(object sender, RoutedEventArgs e)
  28. {
  29. SaveFileDialog sfd = new()
  30. {
  31. Filter = "csv files (*.csv)|*.csv"
  32. };
  33. if (sfd.ShowDialog() == true)
  34. {
  35. //DataTable exportTable = DbHelper.Db.Queryable<LulAlarmLog>().ToDataTable();
  36. //CSV.Write(sfd.FileName, exportTable);
  37. }
  38. _ = MessageBox.Show("导出完成!");
  39. }
  40. private void BtnSearch_Click(object sender, RoutedEventArgs e)
  41. {
  42. //DataSourceUpdate();
  43. }
  44. private void BtnReset_Click(object sender, RoutedEventArgs e)
  45. {
  46. //TextIndex.Text = "";
  47. DTPStart.Reset();
  48. DTPEnd.Reset();
  49. //DataSourceUpdate();
  50. }
  51. private void MyPagination_PageIndexChange(object sender, EventArgs e)
  52. {
  53. //MPagination myPagination = sender as MPagination;
  54. //DataSourceUpdate(myPagination.PageIndex, myPagination.PageSize);
  55. }
  56. }
  57. }