diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a382fbc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +[*.cs] + +# CS1591: 缺少对公共可见类型或成员的 XML 注释 +dotnet_diagnostic.CS1591.severity = silent diff --git a/Audit.sln b/Audit.sln index 76e34f5..cab41c8 100644 --- a/Audit.sln +++ b/Audit.sln @@ -7,6 +7,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Audit", "Audit.csproj", "{4 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "Models\Models.csproj", "{2B23C1BD-0231-4F0C-A142-A220C75FFE5B}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{41EA4192-84E5-4AAB-A2CA-7DF5D6B0F5DA}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/Models/Models.csproj b/Models/Models.csproj index e1699c0..bae1196 100644 --- a/Models/Models.csproj +++ b/Models/Models.csproj @@ -317,6 +317,9 @@ + + .editorconfig + diff --git a/View/StuffView.xaml.cs b/View/StuffView.xaml.cs index 2c8d064..294cb0b 100644 --- a/View/StuffView.xaml.cs +++ b/View/StuffView.xaml.cs @@ -42,6 +42,8 @@ namespace Audit.View } + + private void Button_Preservation(object sender, RoutedEventArgs e)//保存按钮事件 { if (string.IsNullOrEmpty(this.stuff_ProductCode.Text)) System.Windows.MessageBox.Show("ERR.C0101:无效的原料信息");//检查原料代码 diff --git a/ViewModel/StuffViewModel.cs b/ViewModel/StuffViewModel.cs index 91aeaef..67e0793 100644 --- a/ViewModel/StuffViewModel.cs +++ b/ViewModel/StuffViewModel.cs @@ -19,10 +19,6 @@ namespace Audit.ViewModel { private List products = new List(); /// - /// 加入AuditData为属性成员 - /// - public AuditData AuditData { get; set; } = AuditData.Instance; - /// /// 所有原料 /// public List Product