DataChartingView.xaml.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. using Aitex.Triton160.UI;
  15. using DataAnalysisControl.Core;
  16. using Triton160.UI.ViewModel;
  17. namespace Aitex.Jet.UI.Views
  18. {
  19. /// <summary>
  20. /// DataCharting.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class DataChartingView : UserControl
  23. {
  24. private string _culture;
  25. public DataChartingView()
  26. {
  27. InitializeComponent();
  28. CONTEXT.SetContext(new JetDataAnalysisContext());
  29. Triton160UiSystem.Instance.CultureChanged += CultureChanged;
  30. }
  31. private void CultureChanged(string s)
  32. {
  33. _culture = s;
  34. this.MainView.UpdateCultureResource(s);
  35. }
  36. }
  37. }