using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Forms; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace XHWK.WKTool { /// /// 创建微课 /// public partial class CreateAMicroLessonWindow : Window { #region 字段 private FolderBrowserDialog ofd; private DialogResult result; #endregion /// /// 创建微课 /// public CreateAMicroLessonWindow() { InitializeComponent(); } #region 事件 /// /// 关闭 /// /// /// private void btnDown_Click(object sender, RoutedEventArgs e) { } /// /// 浏览 /// /// /// private void btnBrowse_Click(object sender, RoutedEventArgs e) { string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); ofd = new System.Windows.Forms.FolderBrowserDialog(); result = ofd.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { if (ofd.SelectedPath != "") { txbStoragePath.Text = ofd.SelectedPath; //string ApplicationData = ZConfig.dataPath + "fileStorageAddress.txt"; //string temp = ofd.SelectedPath; //System.IO.File.WriteAllText(ApplicationData, temp, Encoding.Default); } } } /// /// 开始 /// /// /// private void btnStart_Click(object sender, RoutedEventArgs e) { XHMicroLessonSystemWindow win = new XHMicroLessonSystemWindow(); //win.Topmost = true; win.ShowDialog(); this.Close(); } /// /// 窗体移动 /// /// /// private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { DragMove(); } #endregion } }