WinCompare.xaml.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 Test.CompareTest
  15. {
  16. /// <summary>
  17. /// WinCompare.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class WinCompare : Window
  20. {
  21. public WinCompare()
  22. {
  23. InitializeComponent();
  24. /*
  25. * 增加一个list,绑定前台。构件样式,错误显示红色,正确显示绿色。返回函数名称
  26. */
  27. HashSet<Type> types = new HashSet<Type>();
  28. var useType = typeof(string);
  29. types.Add(useType);
  30. var flag1 = types.Contains(useType);
  31. var flag2 = types.Contains(typeof(string));
  32. //CompareItemTest.Test();
  33. List<int> list = new List<int>();
  34. list.Insert(0, 0);
  35. list.Insert(1, 0);
  36. BtnUpdate.Content = "\uf036;dadad";
  37. Text.Text = "\uf036;dadad";
  38. }
  39. }
  40. }