diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 183ea70..0260d28 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -193,7 +193,7 @@ namespace formula_manage Stuff_data.Fill(logindataTable); //查询结果存入缓存 conn_SC.Close(); //关闭连接 } - catch (Exception) + catch (Exception) { System.Windows.MessageBox.Show("请求信息失败,检查连接"); return; @@ -838,8 +838,8 @@ namespace formula_manage System.Windows.MessageBox.Show("先选择原料"); return; } - - if (e.Key == Key.Enter) + + if (e.Key == Key.Enter) { if (!double.TryParse(curTextBox.Text, out ang)) { @@ -888,6 +888,7 @@ namespace formula_manage } } } + private void CP_PRODUCT_CODE_DropDownClosed(object sender, EventArgs e)//原料代码选择事件 { double ang;