AxisData.xaml.cs 1.8 KB

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