OtherControl.xaml.cs 982 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using GeekDesk.Constant;
  2. using GeekDesk.Util;
  3. using GeekDesk.ViewModel;
  4. using System;
  5. using System.Collections.Generic;
  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 GeekDesk.Control.UserControls.Config
  19. {
  20. /// <summary>
  21. /// OtherControl.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class OtherControl : UserControl
  24. {
  25. public OtherControl()
  26. {
  27. InitializeComponent();
  28. }
  29. private void SelfStartUpBox_Click(object sender, RoutedEventArgs e)
  30. {
  31. AppConfig appConfig = MainWindow.appData.AppConfig;
  32. RegisterUtil.SetSelfStarting(appConfig.SelfStartUp, Constants.MY_NAME);
  33. }
  34. }
  35. }