diff --git a/MainWindow.xaml b/MainWindow.xaml
index acc4c19..447cd62 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -71,7 +71,7 @@
-
+
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index 9ea8ec0..3d5d2ad 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -317,7 +317,8 @@ namespace formula_manage
}
private void PRINT_SET(object sender, RoutedEventArgs e)
{
-
+ Windows.Print print = new Windows.Print();
+ print.ShowDialog();//实例化并置顶打开打印窗口
}
private void HELP(object sender, RoutedEventArgs e)
{
diff --git a/Windows/Print.xaml b/Windows/Print.xaml
index 535abf9..802553e 100644
--- a/Windows/Print.xaml
+++ b/Windows/Print.xaml
@@ -5,8 +5,10 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:formula_manage.Windows"
mc:Ignorable="d"
- Title="打印预览窗口" Height="450" Width="800">
+ Title="打印设置" Height="450" Width="800">
-
+
+
+
diff --git a/Windows/Print.xaml.cs b/Windows/Print.xaml.cs
index 92fe2a9..db18f64 100644
--- a/Windows/Print.xaml.cs
+++ b/Windows/Print.xaml.cs
@@ -7,6 +7,7 @@ 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;
@@ -24,5 +25,16 @@ namespace formula_manage.Windows
InitializeComponent();
}
+ private void Button_Click(object sender, RoutedEventArgs e) //SQL_DISPEN_bak路径选择按钮
+ {
+ FolderBrowserDialog Dilog = new FolderBrowserDialog();
+ Dilog.SelectedPath = Print_path.Text; //打开目录
+ Dilog.ShowNewFolderButton = false; //不显示新建文件夹按钮
+ //
+ if (Dilog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
+ {
+ Print_path.Text = Dilog.SelectedPath; //返回选择的字符串
+ }
+ }
}
}