SetConfigDlg.xaml.cs 962 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace ApiTest
  15. {
  16. /// <summary>
  17. /// SetConfigDlg.xaml 的互動邏輯
  18. /// </summary>
  19. public partial class SetConfigDlg : Window
  20. {
  21. public string Key => uxKey.Text;
  22. public string Val => uxVal.Text;
  23. public SetConfigDlg()
  24. {
  25. InitializeComponent();
  26. }
  27. private void OK_Click(object sender, RoutedEventArgs e)
  28. {
  29. DialogResult = true;
  30. }
  31. private void Cancel_Click(object sender, RoutedEventArgs e)
  32. {
  33. DialogResult = false;
  34. }
  35. }
  36. }