星火微课系统客户端
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.

CreateAMicroLessonWindow.xaml.cs 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.Forms;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace XHWK.WKTool
  17. {
  18. /// <summary>
  19. /// 创建微课
  20. /// </summary>
  21. public partial class CreateAMicroLessonWindow : Window
  22. {
  23. #region 字段
  24. private FolderBrowserDialog ofd;
  25. private DialogResult result;
  26. #endregion
  27. /// <summary>
  28. /// 创建微课
  29. /// </summary>
  30. public CreateAMicroLessonWindow()
  31. {
  32. InitializeComponent();
  33. }
  34. #region 事件
  35. /// <summary>
  36. /// 关闭
  37. /// </summary>
  38. /// <param name="sender"></param>
  39. /// <param name="e"></param>
  40. private void btnDown_Click(object sender, RoutedEventArgs e)
  41. {
  42. }
  43. /// <summary>
  44. /// 浏览
  45. /// </summary>
  46. /// <param name="sender"></param>
  47. /// <param name="e"></param>
  48. private void btnBrowse_Click(object sender, RoutedEventArgs e)
  49. {
  50. string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
  51. ofd = new System.Windows.Forms.FolderBrowserDialog();
  52. result = ofd.ShowDialog();
  53. if (result == System.Windows.Forms.DialogResult.OK)
  54. {
  55. if (ofd.SelectedPath != "")
  56. {
  57. txbStoragePath.Text = ofd.SelectedPath;
  58. //string ApplicationData = ZConfig.dataPath + "fileStorageAddress.txt";
  59. //string temp = ofd.SelectedPath;
  60. //System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default);
  61. }
  62. }
  63. }
  64. /// <summary>
  65. /// 开始
  66. /// </summary>
  67. /// <param name="sender"></param>
  68. /// <param name="e"></param>
  69. private void btnStart_Click(object sender, RoutedEventArgs e)
  70. {
  71. XHMicroLessonSystemWindow win = new XHMicroLessonSystemWindow();
  72. //win.Topmost = true;
  73. win.ShowDialog();
  74. this.Close();
  75. }
  76. /// <summary>
  77. /// 窗体移动
  78. /// </summary>
  79. /// <param name="sender"></param>
  80. /// <param name="e"></param>
  81. private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  82. {
  83. DragMove();
  84. }
  85. #endregion
  86. }
  87. }