diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.resx b/RbFreqStandMeasure/RbFreqStandMeasure.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.resx b/RbFreqStandMeasure/RbFreqStandMeasure.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/db/SqliteHelper.cs b/RbFreqStandMeasure/db/SqliteHelper.cs new file mode 100644 index 0000000..f6fc9eb --- /dev/null +++ b/RbFreqStandMeasure/db/SqliteHelper.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data.SQLite; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.Db +{ + public class SqliteHelper + { + static readonly string DB_PATH = "Data Source="+Application.StartupPath+ "\\sqlite\\data\\rb_freq_comp.db"; + public static SQLiteConnection sqliteConnection = null; + public static int OpenDB() + { + int iRetval = -1; + try + { + sqliteConnection = new SQLiteConnection(DB_PATH); + sqliteConnection.Open(); + iRetval = 0; + } + catch (SqlException exSql) + { + iRetval = exSql.ErrorCode; + } + catch (SQLiteException sqliteEx) + { + iRetval = sqliteEx.ErrorCode; + } + + return iRetval; + } + + + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.resx b/RbFreqStandMeasure/RbFreqStandMeasure.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/db/SqliteHelper.cs b/RbFreqStandMeasure/db/SqliteHelper.cs new file mode 100644 index 0000000..f6fc9eb --- /dev/null +++ b/RbFreqStandMeasure/db/SqliteHelper.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data.SQLite; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.Db +{ + public class SqliteHelper + { + static readonly string DB_PATH = "Data Source="+Application.StartupPath+ "\\sqlite\\data\\rb_freq_comp.db"; + public static SQLiteConnection sqliteConnection = null; + public static int OpenDB() + { + int iRetval = -1; + try + { + sqliteConnection = new SQLiteConnection(DB_PATH); + sqliteConnection.Open(); + iRetval = 0; + } + catch (SqlException exSql) + { + iRetval = exSql.ErrorCode; + } + catch (SQLiteException sqliteEx) + { + iRetval = sqliteEx.ErrorCode; + } + + return iRetval; + } + + + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/packages.config b/RbFreqStandMeasure/packages.config new file mode 100644 index 0000000..c2aa027 --- /dev/null +++ b/RbFreqStandMeasure/packages.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.resx b/RbFreqStandMeasure/RbFreqStandMeasure.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/db/SqliteHelper.cs b/RbFreqStandMeasure/db/SqliteHelper.cs new file mode 100644 index 0000000..f6fc9eb --- /dev/null +++ b/RbFreqStandMeasure/db/SqliteHelper.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data.SQLite; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.Db +{ + public class SqliteHelper + { + static readonly string DB_PATH = "Data Source="+Application.StartupPath+ "\\sqlite\\data\\rb_freq_comp.db"; + public static SQLiteConnection sqliteConnection = null; + public static int OpenDB() + { + int iRetval = -1; + try + { + sqliteConnection = new SQLiteConnection(DB_PATH); + sqliteConnection.Open(); + iRetval = 0; + } + catch (SqlException exSql) + { + iRetval = exSql.ErrorCode; + } + catch (SQLiteException sqliteEx) + { + iRetval = sqliteEx.ErrorCode; + } + + return iRetval; + } + + + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/packages.config b/RbFreqStandMeasure/packages.config new file mode 100644 index 0000000..c2aa027 --- /dev/null +++ b/RbFreqStandMeasure/packages.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/tools/ConfigHelper.cs b/RbFreqStandMeasure/tools/ConfigHelper.cs new file mode 100644 index 0000000..aaa5cd4 --- /dev/null +++ b/RbFreqStandMeasure/tools/ConfigHelper.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Configuration; + +namespace Casic.Birmm.RbFreqStandMeasure.Tools +{ + class ConfigHelper + { + public static string GetAppConfig(string strKey) + { + string file = System.Windows.Forms.Application.ExecutablePath; + Configuration config = ConfigurationManager.OpenExeConfiguration(file); + foreach (string key in config.AppSettings.Settings.AllKeys) + { + if (key == strKey) + { + return config.AppSettings.Settings[strKey].Value.ToString(); + } + } + return null; + } + + + public static void UpdateAppConfig(string newKey, string newValue) + { + string file = System.Windows.Forms.Application.ExecutablePath; + Configuration config = ConfigurationManager.OpenExeConfiguration(file); + bool exist = false; + foreach (string key in config.AppSettings.Settings.AllKeys) + { + if (key == newKey) + { + exist = true; + } + } + + if (exist) + { + config.AppSettings.Settings.Remove(newKey); + } + config.AppSettings.Settings.Add(newKey, newValue); + config.Save(ConfigurationSaveMode.Modified); + ConfigurationManager.RefreshSection("appSettings"); + } + } +} diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.resx b/RbFreqStandMeasure/RbFreqStandMeasure.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/db/SqliteHelper.cs b/RbFreqStandMeasure/db/SqliteHelper.cs new file mode 100644 index 0000000..f6fc9eb --- /dev/null +++ b/RbFreqStandMeasure/db/SqliteHelper.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data.SQLite; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.Db +{ + public class SqliteHelper + { + static readonly string DB_PATH = "Data Source="+Application.StartupPath+ "\\sqlite\\data\\rb_freq_comp.db"; + public static SQLiteConnection sqliteConnection = null; + public static int OpenDB() + { + int iRetval = -1; + try + { + sqliteConnection = new SQLiteConnection(DB_PATH); + sqliteConnection.Open(); + iRetval = 0; + } + catch (SqlException exSql) + { + iRetval = exSql.ErrorCode; + } + catch (SQLiteException sqliteEx) + { + iRetval = sqliteEx.ErrorCode; + } + + return iRetval; + } + + + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/packages.config b/RbFreqStandMeasure/packages.config new file mode 100644 index 0000000..c2aa027 --- /dev/null +++ b/RbFreqStandMeasure/packages.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/tools/ConfigHelper.cs b/RbFreqStandMeasure/tools/ConfigHelper.cs new file mode 100644 index 0000000..aaa5cd4 --- /dev/null +++ b/RbFreqStandMeasure/tools/ConfigHelper.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Configuration; + +namespace Casic.Birmm.RbFreqStandMeasure.Tools +{ + class ConfigHelper + { + public static string GetAppConfig(string strKey) + { + string file = System.Windows.Forms.Application.ExecutablePath; + Configuration config = ConfigurationManager.OpenExeConfiguration(file); + foreach (string key in config.AppSettings.Settings.AllKeys) + { + if (key == strKey) + { + return config.AppSettings.Settings[strKey].Value.ToString(); + } + } + return null; + } + + + public static void UpdateAppConfig(string newKey, string newValue) + { + string file = System.Windows.Forms.Application.ExecutablePath; + Configuration config = ConfigurationManager.OpenExeConfiguration(file); + bool exist = false; + foreach (string key in config.AppSettings.Settings.AllKeys) + { + if (key == newKey) + { + exist = true; + } + } + + if (exist) + { + config.AppSettings.Settings.Remove(newKey); + } + config.AppSettings.Settings.Add(newKey, newValue); + config.Save(ConfigurationSaveMode.Modified); + ConfigurationManager.RefreshSection("appSettings"); + } + } +} diff --git a/RbFreqStandMeasure/tools/LogHelper.cs b/RbFreqStandMeasure/tools/LogHelper.cs new file mode 100644 index 0000000..17c4198 --- /dev/null +++ b/RbFreqStandMeasure/tools/LogHelper.cs @@ -0,0 +1,30 @@ +using System; +using System.Text; +using System.IO; + +[assembly: log4net.Config.XmlConfigurator(Watch = true)] +namespace Casic.Birmm.RbFreqStandMeasure.Tools +{ + public class LogHelper + { + + public static log4net.ILog logger = log4net.LogManager.GetLogger("applicationLogger"); + + /// + /// 输出日志到Log4Net + /// + /// + /// + public static void WriteInfoLog(Type t, string msg) + { + log4net.ILog log = log4net.LogManager.GetLogger(t); + log.Info(msg); + } + + public static void WriteErrorLog(Type t, string msg) + { + log4net.ILog log = log4net.LogManager.GetLogger(t); + log.Error(msg); + } + } +} diff --git a/RbFreqStandMeasure.sln b/RbFreqStandMeasure.sln new file mode 100644 index 0000000..d9978f7 --- /dev/null +++ b/RbFreqStandMeasure.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31005.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RbFreqStandMeasure", "RbFreqStandMeasure\RbFreqStandMeasure.csproj", "{F9A73B92-70CF-4F91-B58B-E461A180A75C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3B23BEE-6278-4B6F-9A19-CE9052097824} + EndGlobalSection +EndGlobal diff --git a/RbFreqStandMeasure/App.config b/RbFreqStandMeasure/App.config new file mode 100644 index 0000000..0553c2a --- /dev/null +++ b/RbFreqStandMeasure/App.config @@ -0,0 +1,63 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Program.cs b/RbFreqStandMeasure/Program.cs new file mode 100644 index 0000000..0e902ab --- /dev/null +++ b/RbFreqStandMeasure/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + static class Program + { + /// + /// 应用程序的主入口点。 + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new RbFreqStandMeasureForm()); + } + } +} diff --git a/RbFreqStandMeasure/Properties/AssemblyInfo.cs b/RbFreqStandMeasure/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..03fbb56 --- /dev/null +++ b/RbFreqStandMeasure/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("RbFreqStandMeasure")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RbFreqStandMeasure")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("f9a73b92-70cf-4f91-b58b-e461a180a75c")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 +//通过使用 "*",如下所示: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4c88151 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 返回此类使用的缓存的 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Casic.Birmm.RbFreqStandMeasure.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 重写当前线程的 CurrentUICulture 属性,对 + /// 使用此强类型资源类的所有资源查找执行重写。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Settings.Designer.cs b/RbFreqStandMeasure/Properties/Settings.Designer.cs new file mode 100644 index 0000000..10f802f --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace Casic.Birmm.RbFreqStandMeasure.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/RbFreqStandMeasure/Properties/Settings.settings b/RbFreqStandMeasure/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/RbFreqStandMeasure/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs new file mode 100644 index 0000000..047e4a9 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs @@ -0,0 +1,60 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class RbFreqStandMeasureForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(13, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(983, 100); + this.panel1.TabIndex = 0; + // + // RbFreqStandMeasureForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.panel1); + this.Name = "RbFreqStandMeasureForm"; + this.Text = "铷原子频标比对测量"; + this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} + diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs new file mode 100644 index 0000000..e4904c4 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs @@ -0,0 +1,40 @@ +using Casic.Birmm.RbFreqStandMeasure.Db; +using Casic.Birmm.RbFreqStandMeasure.Tools; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class RbFreqStandMeasureForm : Form + { + public RbFreqStandMeasureForm() + { + InitializeComponent(); + } + + private void RbFreqStandMeasureForm_Load(object sender, EventArgs e) + { + int iRetval = -1; + iRetval = SqliteHelper.OpenDB(); + + if (iRetval != 0) + { + MessageBox.Show("启动异常,请检查数据库服务", "错误"); + LogHelper.logger.Error("启动异常,连接数据库服务失败,请检查数据库服务[code=" + iRetval + "]"); + return; + } + else + { + LogHelper.logger.Info("启动正常"); + return; + } + } + } +} diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj new file mode 100644 index 0000000..5402e0d --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -0,0 +1,143 @@ + + + + + + Debug + AnyCPU + {F9A73B92-70CF-4F91-B58B-E461A180A75C} + WinExe + Casic.Birmm.RbFreqStandMeasure + Casic.Birmm.RbFreqStandMeasure + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.dll + + + ..\packages\EntityFramework.6.3.0\lib\net40\EntityFramework.SqlServer.dll + + + ..\packages\log4net.2.0.12\lib\net40\log4net.dll + + + ..\packages\Newtonsoft.Json.12.0.3\lib\net40\Newtonsoft.Json.dll + + + + + + + ..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.3\lib\net40\System.Data.SQLite.dll + + + ..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net40\System.Data.SQLite.EF6.dll + + + ..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net40\System.Data.SQLite.Linq.dll + + + + + + + + + + + + + + + Form + + + RbFreqStandMeasure.cs + + + + + + + RbFreqStandMeasure.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + + 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。 + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.resx b/RbFreqStandMeasure/RbFreqStandMeasure.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/RbFreqStandMeasure.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/db/SqliteHelper.cs b/RbFreqStandMeasure/db/SqliteHelper.cs new file mode 100644 index 0000000..f6fc9eb --- /dev/null +++ b/RbFreqStandMeasure/db/SqliteHelper.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data.SQLite; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.Db +{ + public class SqliteHelper + { + static readonly string DB_PATH = "Data Source="+Application.StartupPath+ "\\sqlite\\data\\rb_freq_comp.db"; + public static SQLiteConnection sqliteConnection = null; + public static int OpenDB() + { + int iRetval = -1; + try + { + sqliteConnection = new SQLiteConnection(DB_PATH); + sqliteConnection.Open(); + iRetval = 0; + } + catch (SqlException exSql) + { + iRetval = exSql.ErrorCode; + } + catch (SQLiteException sqliteEx) + { + iRetval = sqliteEx.ErrorCode; + } + + return iRetval; + } + + + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/packages.config b/RbFreqStandMeasure/packages.config new file mode 100644 index 0000000..c2aa027 --- /dev/null +++ b/RbFreqStandMeasure/packages.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/RbFreqStandMeasure/tools/ConfigHelper.cs b/RbFreqStandMeasure/tools/ConfigHelper.cs new file mode 100644 index 0000000..aaa5cd4 --- /dev/null +++ b/RbFreqStandMeasure/tools/ConfigHelper.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Configuration; + +namespace Casic.Birmm.RbFreqStandMeasure.Tools +{ + class ConfigHelper + { + public static string GetAppConfig(string strKey) + { + string file = System.Windows.Forms.Application.ExecutablePath; + Configuration config = ConfigurationManager.OpenExeConfiguration(file); + foreach (string key in config.AppSettings.Settings.AllKeys) + { + if (key == strKey) + { + return config.AppSettings.Settings[strKey].Value.ToString(); + } + } + return null; + } + + + public static void UpdateAppConfig(string newKey, string newValue) + { + string file = System.Windows.Forms.Application.ExecutablePath; + Configuration config = ConfigurationManager.OpenExeConfiguration(file); + bool exist = false; + foreach (string key in config.AppSettings.Settings.AllKeys) + { + if (key == newKey) + { + exist = true; + } + } + + if (exist) + { + config.AppSettings.Settings.Remove(newKey); + } + config.AppSettings.Settings.Add(newKey, newValue); + config.Save(ConfigurationSaveMode.Modified); + ConfigurationManager.RefreshSection("appSettings"); + } + } +} diff --git a/RbFreqStandMeasure/tools/LogHelper.cs b/RbFreqStandMeasure/tools/LogHelper.cs new file mode 100644 index 0000000..17c4198 --- /dev/null +++ b/RbFreqStandMeasure/tools/LogHelper.cs @@ -0,0 +1,30 @@ +using System; +using System.Text; +using System.IO; + +[assembly: log4net.Config.XmlConfigurator(Watch = true)] +namespace Casic.Birmm.RbFreqStandMeasure.Tools +{ + public class LogHelper + { + + public static log4net.ILog logger = log4net.LogManager.GetLogger("applicationLogger"); + + /// + /// 输出日志到Log4Net + /// + /// + /// + public static void WriteInfoLog(Type t, string msg) + { + log4net.ILog log = log4net.LogManager.GetLogger(t); + log.Info(msg); + } + + public static void WriteErrorLog(Type t, string msg) + { + log4net.ILog log = log4net.LogManager.GetLogger(t); + log.Error(msg); + } + } +} diff --git a/rb_freq_comp.db b/rb_freq_comp.db new file mode 100644 index 0000000..52d3a43 --- /dev/null +++ b/rb_freq_comp.db Binary files differ