星火微课系统客户端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ScreenRecordingToolbarWindow.xaml.cs 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using Common.system;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Shapes;
  15. namespace XHWK.WKTool
  16. {
  17. /// <summary>
  18. /// 录屏工具栏
  19. /// </summary>
  20. public partial class ScreenRecordingToolbarWindow : Window
  21. {
  22. public ScreenRecordingToolbarWindow()
  23. {
  24. InitializeComponent();
  25. }
  26. public void Initialize()
  27. {
  28. BtnToolbarDown_Click(null, null);
  29. }
  30. /// <summary>
  31. /// 画笔工具栏关闭事件
  32. /// </summary>
  33. /// <param name="sender"></param>
  34. /// <param name="e"></param>
  35. private void BtnToolbarDown_Click(object sender, RoutedEventArgs e)
  36. {
  37. gridToolbar.Visibility = Visibility.Hidden;
  38. }
  39. /// <summary>
  40. /// 画笔点击事件
  41. /// </summary>
  42. /// <param name="sender"></param>
  43. /// <param name="e"></param>
  44. private void BtnBrush_Click(object sender, RoutedEventArgs e)
  45. {
  46. if (gridToolbar.Visibility == Visibility.Visible)
  47. {
  48. gridToolbar.Visibility = Visibility.Hidden;
  49. }
  50. else
  51. {
  52. gridToolbar.Visibility = Visibility.Visible;
  53. }
  54. }
  55. /// <summary>
  56. /// 画笔粗细事件
  57. /// </summary>
  58. /// <param name="sender"></param>
  59. /// <param name="e"></param>
  60. private void BtnThickness_Click(object sender, RoutedEventArgs e)
  61. {
  62. gridThickness.Visibility = Visibility.Visible;
  63. gridColour.Visibility = Visibility.Collapsed;
  64. }
  65. /// <summary>
  66. /// 画笔颜色事件
  67. /// </summary>
  68. /// <param name="sender"></param>
  69. /// <param name="e"></param>
  70. private void BtnColour_Click(object sender, RoutedEventArgs e)
  71. {
  72. gridColour.Visibility = Visibility.Visible;
  73. gridThickness.Visibility = Visibility.Collapsed;
  74. }
  75. /// <summary>
  76. /// 停止录像
  77. /// </summary>
  78. /// <param name="sender"></param>
  79. /// <param name="e"></param>
  80. private void BtnStopRecordingScreen_Click(object sender, RoutedEventArgs e)
  81. {
  82. if(APP.W_XHMicroLessonSystemWindow==null)
  83. {
  84. APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
  85. }
  86. APP.W_XHMicroLessonSystemWindow.Show();
  87. Hide();
  88. }
  89. }
  90. }