|
|
@ -34,8 +34,18 @@ namespace formula_manage.Windows |
|
|
cbxPrinter.ItemsSource = this.GetLocalPrinters(); |
|
|
cbxPrinter.ItemsSource = this.GetLocalPrinters(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public string INIPath = Convert.ToString(System.AppDomain.CurrentDomain.BaseDirectory) + "formula.ini"; |
|
|
|
|
|
|
|
|
bool Printer; |
|
|
bool Printer; |
|
|
|
|
|
string Printer_NAME; |
|
|
|
|
|
|
|
|
|
|
|
private void Window_Print(object sender, RoutedEventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
UserClass.IniFile.IniFiles Configini = new UserClass.IniFile.IniFiles(INIPath); |
|
|
|
|
|
|
|
|
|
|
|
Printer = Boolean.Parse(Configini.IniReadvalue("PRINTER", "P1")); |
|
|
|
|
|
Printer_NAME = Configini.IniReadvalue("PRINTER", "P2"); //读配置文件
|
|
|
|
|
|
} |
|
|
private void Button_Click(object sender, RoutedEventArgs e) //SQL_DISPEN_bak路径选择按钮
|
|
|
private void Button_Click(object sender, RoutedEventArgs e) //SQL_DISPEN_bak路径选择按钮
|
|
|
{ |
|
|
{ |
|
|
FolderBrowserDialog Dilog = new FolderBrowserDialog(); |
|
|
FolderBrowserDialog Dilog = new FolderBrowserDialog(); |
|
|
|