RuleList.xaml.cs 984 B

1234567891011121314151617181920212223242526272829303132333435
  1. namespace GDNXFD.Alert.Config.Views
  2. {
  3. using GalaSoft.MvvmLight.Command;
  4. using GDNXFD.Alert.Config.Helpers;
  5. using GDNXFD.Alert.Config.ViewModel;
  6. using System.Windows.Controls;
  7. /// <summary>
  8. /// Interaction logic for TravelList.xaml
  9. /// </summary>
  10. public partial class RuleList : UserControl
  11. {
  12. /// <summary>
  13. /// Travel List constructor
  14. /// </summary>
  15. public RuleList()
  16. {
  17. InitializeData();
  18. InitializeComponent();
  19. }
  20. private void InitializeData()
  21. {
  22. var vm = ViewModelLocator.Instance.RuleList;// (RuleListViewModel)this.DataContext;
  23. vm.InitializeData();
  24. this.DataContext = vm;
  25. }
  26. private void TextBoxKeyboard_LostFocus(object sender, System.Windows.RoutedEventArgs e)
  27. {
  28. TabtipHelper tabtipHelper = TabtipHelper.Instance;
  29. tabtipHelper.TryKillTabtipProcess();
  30. }
  31. }
  32. }