MainWindow.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #if UNITY_5_3_OR_NEWER
  2. #define NOESIS
  3. using Noesis;
  4. #else
  5. using System;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. #endif
  9. namespace Localization
  10. {
  11. /// <summary>
  12. /// Interaction logic for MainWindow.xaml
  13. /// </summary>
  14. public partial class MainWindow : UserControl
  15. {
  16. public MainWindow()
  17. {
  18. this.Initialized += OnInitialized;
  19. this.InitializeComponent();
  20. }
  21. #if NOESIS
  22. void InitializeComponent()
  23. {
  24. Noesis.GUI.LoadComponent(this, "Assets/NoesisGUI/Samples/Localization/MainWindow.xaml");
  25. }
  26. #endif
  27. private void OnInitialized(object sender, EventArgs args)
  28. {
  29. this.DataContext = new ViewModel();
  30. }
  31. private void platform_bd_SelectionChanged(object sender, SelectionChangedEventArgs e)
  32. {
  33. }
  34. private void set_enclosure_mat_a_SelectionChanged(object sender, SelectionChangedEventArgs e)
  35. {
  36. }
  37. private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
  38. {
  39. }
  40. private void main_tab_SelectionChanged(object sender, SelectionChangedEventArgs e)
  41. {
  42. }
  43. }
  44. }