| @ -1,6 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <configuration> | |||||
| <startup> | |||||
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |||||
| </startup> | |||||
| </configuration> | |||||
| @ -1,61 +0,0 @@ | |||||
| //using BO.Utils; | |||||
| //using System; | |||||
| //using System.Collections.Generic; | |||||
| //using System.IO; | |||||
| //using System.Linq; | |||||
| //using System.Text; | |||||
| //using System.Threading.Tasks; | |||||
| //using System.Windows.Forms; | |||||
| //namespace ButcherOrder | |||||
| //{ | |||||
| // public class AppContext | |||||
| // { | |||||
| // private static string loginConfigPath = Application.StartupPath + "\\Config.xml"; | |||||
| // public ServerUrlConfig UrlConfig | |||||
| // { | |||||
| // get; | |||||
| // set; | |||||
| // } | |||||
| // public LoginUserInfo UserConfig | |||||
| // { | |||||
| // get; | |||||
| // set; | |||||
| // } | |||||
| // private AppContext() | |||||
| // { | |||||
| // UrlConfig = new ServerUrlConfig(); | |||||
| // UserConfig = new LoginUserInfo(); | |||||
| // } | |||||
| // public static AppContext Context | |||||
| // { | |||||
| // get | |||||
| // { | |||||
| // if (_appContext == null) | |||||
| // _appContext = CreateAppContext(); | |||||
| // return _appContext; | |||||
| // } | |||||
| // } | |||||
| // private static AppContext _appContext; | |||||
| // static AppContext CreateAppContext() | |||||
| // { | |||||
| // var config = new AppContext(); | |||||
| // if (!File.Exists(loginConfigPath)) | |||||
| // { | |||||
| // XmlUtil.SerializerObjToFile(config, loginConfigPath); | |||||
| // } | |||||
| // else | |||||
| // config = XmlUtil.DeserializeFromFile<AppContext>(loginConfigPath); | |||||
| // return config; | |||||
| // } | |||||
| // public void Save() | |||||
| // { | |||||
| // XmlUtil.SerializerObjToFile(_appContext, loginConfigPath); | |||||
| // } | |||||
| // } | |||||
| //} | |||||
| @ -1,114 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||||
| <PropertyGroup> | |||||
| <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||||
| <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||||
| <ProjectGuid>{2D425E5E-A44F-4781-8F7A-9CDDB8431684}</ProjectGuid> | |||||
| <OutputType>WinExe</OutputType> | |||||
| <AppDesignerFolder>Properties</AppDesignerFolder> | |||||
| <RootNamespace>ButcherOrder</RootNamespace> | |||||
| <AssemblyName>ButcherOrder</AssemblyName> | |||||
| <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||||
| <FileAlignment>512</FileAlignment> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||||
| <PlatformTarget>AnyCPU</PlatformTarget> | |||||
| <DebugSymbols>true</DebugSymbols> | |||||
| <DebugType>full</DebugType> | |||||
| <Optimize>false</Optimize> | |||||
| <OutputPath>bin\Debug\</OutputPath> | |||||
| <DefineConstants>DEBUG;TRACE</DefineConstants> | |||||
| <ErrorReport>prompt</ErrorReport> | |||||
| <WarningLevel>4</WarningLevel> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||||
| <PlatformTarget>AnyCPU</PlatformTarget> | |||||
| <DebugType>pdbonly</DebugType> | |||||
| <Optimize>true</Optimize> | |||||
| <OutputPath>bin\Release\</OutputPath> | |||||
| <DefineConstants>TRACE</DefineConstants> | |||||
| <ErrorReport>prompt</ErrorReport> | |||||
| <WarningLevel>4</WarningLevel> | |||||
| </PropertyGroup> | |||||
| <ItemGroup> | |||||
| <Reference Include="Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"> | |||||
| <SpecificVersion>False</SpecificVersion> | |||||
| <HintPath>D:\BwpB3Project\tsref\Debug\Forks.EnterpriseServices.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="Forks.JsonRpc.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"> | |||||
| <SpecificVersion>False</SpecificVersion> | |||||
| <HintPath>..\..\..\..\BwpB3Project\tsref\Debug\Forks.JsonRpc.Client.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="Forks.Utils, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"> | |||||
| <SpecificVersion>False</SpecificVersion> | |||||
| <HintPath>D:\BwpB3Project\tsref\Debug\Forks.Utils.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="PresentationCore" /> | |||||
| <Reference Include="PresentationFramework" /> | |||||
| <Reference Include="System" /> | |||||
| <Reference Include="System.Core" /> | |||||
| <Reference Include="System.Xaml" /> | |||||
| <Reference Include="System.Xml.Linq" /> | |||||
| <Reference Include="System.Data.DataSetExtensions" /> | |||||
| <Reference Include="Microsoft.CSharp" /> | |||||
| <Reference Include="System.Data" /> | |||||
| <Reference Include="System.Deployment" /> | |||||
| <Reference Include="System.Drawing" /> | |||||
| <Reference Include="System.Windows.Forms" /> | |||||
| <Reference Include="System.Xml" /> | |||||
| <Reference Include="WindowsBase" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <Compile Include="AppContext.cs" /> | |||||
| <Compile Include="ButcherOrderForm.cs"> | |||||
| <SubType>Form</SubType> | |||||
| </Compile> | |||||
| <Compile Include="ButcherOrderForm.Designer.cs"> | |||||
| <DependentUpon>ButcherOrderForm.cs</DependentUpon> | |||||
| </Compile> | |||||
| <Compile Include="Properties\AssemblyInfo.cs" /> | |||||
| <EmbeddedResource Include="ButcherOrderForm.resx"> | |||||
| <DependentUpon>ButcherOrderForm.cs</DependentUpon> | |||||
| </EmbeddedResource> | |||||
| <EmbeddedResource Include="Properties\Resources.resx"> | |||||
| <Generator>ResXFileCodeGenerator</Generator> | |||||
| <LastGenOutput>Resources.Designer.cs</LastGenOutput> | |||||
| <SubType>Designer</SubType> | |||||
| </EmbeddedResource> | |||||
| <Compile Include="Properties\Resources.Designer.cs"> | |||||
| <AutoGen>True</AutoGen> | |||||
| <DependentUpon>Resources.resx</DependentUpon> | |||||
| </Compile> | |||||
| <None Include="Properties\Settings.settings"> | |||||
| <Generator>SettingsSingleFileGenerator</Generator> | |||||
| <LastGenOutput>Settings.Designer.cs</LastGenOutput> | |||||
| </None> | |||||
| <Compile Include="Properties\Settings.Designer.cs"> | |||||
| <AutoGen>True</AutoGen> | |||||
| <DependentUpon>Settings.settings</DependentUpon> | |||||
| <DesignTimeSharedInput>True</DesignTimeSharedInput> | |||||
| </Compile> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <None Include="App.config" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <ProjectReference Include="..\BO\BO.csproj"> | |||||
| <Project>{8968f14a-c7c7-4751-96ce-b114fbfd65ef}</Project> | |||||
| <Name>BO</Name> | |||||
| </ProjectReference> | |||||
| <ProjectReference Include="..\BWP.WinFormControl\BWP.WinFormControl.csproj"> | |||||
| <Project>{A782B23E-BE6D-4F51-B5CB-5CD259BA97CC}</Project> | |||||
| <Name>BWP.WinFormControl</Name> | |||||
| </ProjectReference> | |||||
| </ItemGroup> | |||||
| <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||||
| <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||||
| Other similar extension points exist, see Microsoft.Common.targets. | |||||
| <Target Name="BeforeBuild"> | |||||
| </Target> | |||||
| <Target Name="AfterBuild"> | |||||
| </Target> | |||||
| --> | |||||
| </Project> | |||||
| @ -1,63 +0,0 @@ | |||||
| namespace ButcherOrder | |||||
| { | |||||
| partial class ButcherOrderForm | |||||
| { | |||||
| /// <summary> | |||||
| /// Required designer variable. | |||||
| /// </summary> | |||||
| private System.ComponentModel.IContainer components = null; | |||||
| /// <summary> | |||||
| /// Clean up any resources being used. | |||||
| /// </summary> | |||||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||||
| protected override void Dispose(bool disposing) | |||||
| { | |||||
| if (disposing && (components != null)) | |||||
| { | |||||
| components.Dispose(); | |||||
| } | |||||
| base.Dispose(disposing); | |||||
| } | |||||
| #region Windows Form Designer generated code | |||||
| /// <summary> | |||||
| /// Required method for Designer support - do not modify | |||||
| /// the contents of this method with the code editor. | |||||
| /// </summary> | |||||
| private void InitializeComponent() | |||||
| { | |||||
| this.label1 = new System.Windows.Forms.Label(); | |||||
| this.SuspendLayout(); | |||||
| // | |||||
| // label1 | |||||
| // | |||||
| this.label1.AutoSize = true; | |||||
| this.label1.Font = new System.Drawing.Font("宋体", 18F); | |||||
| this.label1.Location = new System.Drawing.Point(20, 24); | |||||
| this.label1.Name = "label1"; | |||||
| this.label1.Size = new System.Drawing.Size(130, 24); | |||||
| this.label1.TabIndex = 0; | |||||
| this.label1.Text = "宰杀日期:"; | |||||
| // | |||||
| // ButcherOrderForm | |||||
| // | |||||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||||
| this.ClientSize = new System.Drawing.Size(1020, 690); | |||||
| this.Controls.Add(this.label1); | |||||
| this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; | |||||
| this.MaximizeBox = false; | |||||
| this.Name = "ButcherOrderForm"; | |||||
| this.Text = "排宰挑选"; | |||||
| this.ResumeLayout(false); | |||||
| this.PerformLayout(); | |||||
| } | |||||
| #endregion | |||||
| private System.Windows.Forms.Label label1; | |||||
| } | |||||
| } | |||||
| @ -1,20 +0,0 @@ | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.ComponentModel; | |||||
| using System.Data; | |||||
| using System.Drawing; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| using System.Windows.Forms; | |||||
| namespace ButcherOrder | |||||
| { | |||||
| public partial class ButcherOrderForm : Form | |||||
| { | |||||
| public ButcherOrderForm() | |||||
| { | |||||
| InitializeComponent(); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,36 +0,0 @@ | |||||
| using System.Reflection; | |||||
| using System.Runtime.CompilerServices; | |||||
| using System.Runtime.InteropServices; | |||||
| // 有关程序集的常规信息通过以下 | |||||
| // 特性集控制。更改这些特性值可修改 | |||||
| // 与程序集关联的信息。 | |||||
| [assembly: AssemblyTitle("ButcherOrder")] | |||||
| [assembly: AssemblyDescription("")] | |||||
| [assembly: AssemblyConfiguration("")] | |||||
| [assembly: AssemblyCompany("")] | |||||
| [assembly: AssemblyProduct("ButcherOrder")] | |||||
| [assembly: AssemblyCopyright("Copyright © 2017")] | |||||
| [assembly: AssemblyTrademark("")] | |||||
| [assembly: AssemblyCulture("")] | |||||
| // 将 ComVisible 设置为 false 使此程序集中的类型 | |||||
| // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, | |||||
| // 则将该类型上的 ComVisible 特性设置为 true。 | |||||
| [assembly: ComVisible(false)] | |||||
| // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID | |||||
| [assembly: Guid("304dabe0-ecb3-451b-b97a-ad824562b183")] | |||||
| // 程序集的版本信息由下面四个值组成: | |||||
| // | |||||
| // 主版本 | |||||
| // 次版本 | |||||
| // 生成号 | |||||
| // 修订号 | |||||
| // | |||||
| // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, | |||||
| // 方法是按如下所示使用“*”: | |||||
| // [assembly: AssemblyVersion("1.0.*")] | |||||
| [assembly: AssemblyVersion("1.0.0.0")] | |||||
| [assembly: AssemblyFileVersion("1.0.0.0")] | |||||
| @ -1,71 +0,0 @@ | |||||
| //------------------------------------------------------------------------------ | |||||
| // <auto-generated> | |||||
| // 此代码由工具生成。 | |||||
| // 运行时版本: 4.0.30319.42000 | |||||
| // | |||||
| // 对此文件的更改可能会导致不正确的行为,并且如果 | |||||
| // 重新生成代码,这些更改将丢失。 | |||||
| // </auto-generated> | |||||
| //------------------------------------------------------------------------------ | |||||
| namespace ButcherOrder.Properties | |||||
| { | |||||
| /// <summary> | |||||
| /// 一个强类型的资源类,用于查找本地化的字符串等。 | |||||
| /// </summary> | |||||
| // 此类是由 StronglyTypedResourceBuilder | |||||
| // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 | |||||
| // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen | |||||
| // (以 /str 作为命令选项),或重新生成 VS 项目。 | |||||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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() | |||||
| { | |||||
| } | |||||
| /// <summary> | |||||
| /// 返回此类使用的、缓存的 ResourceManager 实例。 | |||||
| /// </summary> | |||||
| [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||||
| internal static global::System.Resources.ResourceManager ResourceManager | |||||
| { | |||||
| get | |||||
| { | |||||
| if ((resourceMan == null)) | |||||
| { | |||||
| global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ButcherOrder.Properties.Resources", typeof(Resources).Assembly); | |||||
| resourceMan = temp; | |||||
| } | |||||
| return resourceMan; | |||||
| } | |||||
| } | |||||
| /// <summary> | |||||
| /// 为所有资源查找重写当前线程的 CurrentUICulture 属性, | |||||
| /// 方法是使用此强类型资源类。 | |||||
| /// </summary> | |||||
| [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||||
| internal static global::System.Globalization.CultureInfo Culture | |||||
| { | |||||
| get | |||||
| { | |||||
| return resourceCulture; | |||||
| } | |||||
| set | |||||
| { | |||||
| resourceCulture = value; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,117 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <root> | |||||
| <!-- | |||||
| Microsoft ResX Schema | |||||
| Version 2.0 | |||||
| The primary goals of this format is to allow a simple XML format | |||||
| that is mostly human readable. The generation and parsing of the | |||||
| various data types are done through the TypeConverter classes | |||||
| associated with the data types. | |||||
| Example: | |||||
| ... ado.net/XML headers & schema ... | |||||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||||
| <resheader name="version">2.0</resheader> | |||||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||||
| </data> | |||||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||||
| <comment>This is a comment</comment> | |||||
| </data> | |||||
| There are any number of "resheader" rows that contain simple | |||||
| name/value pairs. | |||||
| Each data row contains a name, and value. The row also contains a | |||||
| type or mimetype. Type corresponds to a .NET class that support | |||||
| text/value conversion through the TypeConverter architecture. | |||||
| Classes that don't support this are serialized and stored with the | |||||
| mimetype set. | |||||
| The mimetype is used for serialized objects, and tells the | |||||
| ResXResourceReader how to depersist the object. This is currently not | |||||
| extensible. For a given mimetype the value must be set accordingly: | |||||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||||
| that the ResXResourceWriter will generate, however the reader can | |||||
| read any of the formats listed below. | |||||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Serialization.Formatters.Binary.BinaryFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||||
| value : The object must be serialized into a byte array | |||||
| : using a System.ComponentModel.TypeConverter | |||||
| : and then encoded with base64 encoding. | |||||
| --> | |||||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||||
| <xsd:complexType> | |||||
| <xsd:choice maxOccurs="unbounded"> | |||||
| <xsd:element name="metadata"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| <xsd:attribute name="type" type="xsd:string" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="assembly"> | |||||
| <xsd:complexType> | |||||
| <xsd:attribute name="alias" type="xsd:string" /> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="data"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | |||||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="resheader"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:choice> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:schema> | |||||
| <resheader name="resmimetype"> | |||||
| <value>text/microsoft-resx</value> | |||||
| </resheader> | |||||
| <resheader name="version"> | |||||
| <value>2.0</value> | |||||
| </resheader> | |||||
| <resheader name="reader"> | |||||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| <resheader name="writer"> | |||||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| </root> | |||||
| @ -1,30 +0,0 @@ | |||||
| //------------------------------------------------------------------------------ | |||||
| // <auto-generated> | |||||
| // This code was generated by a tool. | |||||
| // Runtime Version:4.0.30319.42000 | |||||
| // | |||||
| // Changes to this file may cause incorrect behavior and will be lost if | |||||
| // the code is regenerated. | |||||
| // </auto-generated> | |||||
| //------------------------------------------------------------------------------ | |||||
| namespace ButcherOrder.Properties | |||||
| { | |||||
| [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.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; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,7 +0,0 @@ | |||||
| <?xml version='1.0' encoding='utf-8'?> | |||||
| <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |||||
| <Profiles> | |||||
| <Profile Name="(Default)" /> | |||||
| </Profiles> | |||||
| <Settings /> | |||||
| </SettingsFile> | |||||
| @ -1,6 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <configuration> | |||||
| <startup> | |||||
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |||||
| </startup> | |||||
| </configuration> | |||||
| @ -1,39 +0,0 @@ | |||||
| namespace WeighAndGrading | |||||
| { | |||||
| partial class Form1 | |||||
| { | |||||
| /// <summary> | |||||
| /// 必需的设计器变量。 | |||||
| /// </summary> | |||||
| private System.ComponentModel.IContainer components = null; | |||||
| /// <summary> | |||||
| /// 清理所有正在使用的资源。 | |||||
| /// </summary> | |||||
| /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param> | |||||
| protected override void Dispose(bool disposing) | |||||
| { | |||||
| if (disposing && (components != null)) | |||||
| { | |||||
| components.Dispose(); | |||||
| } | |||||
| base.Dispose(disposing); | |||||
| } | |||||
| #region Windows 窗体设计器生成的代码 | |||||
| /// <summary> | |||||
| /// 设计器支持所需的方法 - 不要 | |||||
| /// 使用代码编辑器修改此方法的内容。 | |||||
| /// </summary> | |||||
| private void InitializeComponent() | |||||
| { | |||||
| this.components = new System.ComponentModel.Container(); | |||||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||||
| this.Text = "Form1"; | |||||
| } | |||||
| #endregion | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,353 @@ | |||||
| namespace WeighAndGrading | |||||
| { | |||||
| partial class GradeFrom | |||||
| { | |||||
| /// <summary> | |||||
| /// Required designer variable. | |||||
| /// </summary> | |||||
| private System.ComponentModel.IContainer components = null; | |||||
| /// <summary> | |||||
| /// Clean up any resources being used. | |||||
| /// </summary> | |||||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||||
| protected override void Dispose(bool disposing) | |||||
| { | |||||
| if (disposing && (components != null)) | |||||
| { | |||||
| components.Dispose(); | |||||
| } | |||||
| base.Dispose(disposing); | |||||
| } | |||||
| #region Windows Form Designer generated code | |||||
| /// <summary> | |||||
| /// Required method for Designer support - do not modify | |||||
| /// the contents of this method with the code editor. | |||||
| /// </summary> | |||||
| private void InitializeComponent() | |||||
| { | |||||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); | |||||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); | |||||
| System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); | |||||
| this.label1 = new System.Windows.Forms.Label(); | |||||
| this.uDatePicker1 = new BWP.WinFormControl.UDatePicker(); | |||||
| this.button1 = new System.Windows.Forms.Button(); | |||||
| this.uDataGridView1 = new BWP.WinFormControl.UDataGridView(); | |||||
| this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||||
| this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||||
| this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||||
| this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); | |||||
| this.label2 = new System.Windows.Forms.Label(); | |||||
| this.label3 = new System.Windows.Forms.Label(); | |||||
| this.label4 = new System.Windows.Forms.Label(); | |||||
| this.label5 = new System.Windows.Forms.Label(); | |||||
| this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||||
| this.groupBox2 = new System.Windows.Forms.GroupBox(); | |||||
| this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); | |||||
| this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); | |||||
| this.groupBox3 = new System.Windows.Forms.GroupBox(); | |||||
| this.enableWeight = new System.Windows.Forms.CheckBox(); | |||||
| this.isPrintCheckBox = new System.Windows.Forms.CheckBox(); | |||||
| this.printBtn = new System.Windows.Forms.Button(); | |||||
| this.panel1 = new System.Windows.Forms.Panel(); | |||||
| this.lblChengZhong = new System.Windows.Forms.Label(); | |||||
| ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit(); | |||||
| this.groupBox1.SuspendLayout(); | |||||
| this.groupBox2.SuspendLayout(); | |||||
| this.panel1.SuspendLayout(); | |||||
| this.SuspendLayout(); | |||||
| // | |||||
| // label1 | |||||
| // | |||||
| this.label1.AutoSize = true; | |||||
| this.label1.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.label1.Location = new System.Drawing.Point(12, 131); | |||||
| this.label1.Name = "label1"; | |||||
| this.label1.Size = new System.Drawing.Size(109, 20); | |||||
| this.label1.TabIndex = 0; | |||||
| this.label1.Text = "宰杀日期:"; | |||||
| // | |||||
| // uDatePicker1 | |||||
| // | |||||
| this.uDatePicker1.BackColor = System.Drawing.Color.White; | |||||
| this.uDatePicker1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | |||||
| this.uDatePicker1.Date = new System.DateTime(2017, 9, 5, 0, 0, 0, 0); | |||||
| this.uDatePicker1.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.uDatePicker1.Location = new System.Drawing.Point(116, 126); | |||||
| this.uDatePicker1.Name = "uDatePicker1"; | |||||
| this.uDatePicker1.Size = new System.Drawing.Size(133, 30); | |||||
| this.uDatePicker1.TabIndex = 2; | |||||
| this.uDatePicker1.Text = "2017/09/05"; | |||||
| this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; | |||||
| this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date; | |||||
| // | |||||
| // button1 | |||||
| // | |||||
| this.button1.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.button1.Location = new System.Drawing.Point(287, 120); | |||||
| this.button1.Name = "button1"; | |||||
| this.button1.Size = new System.Drawing.Size(102, 43); | |||||
| this.button1.TabIndex = 3; | |||||
| this.button1.Text = "同步数据"; | |||||
| this.button1.UseVisualStyleBackColor = true; | |||||
| // | |||||
| // uDataGridView1 | |||||
| // | |||||
| this.uDataGridView1.AllowUserToAddRows = false; | |||||
| this.uDataGridView1.AllowUserToDeleteRows = false; | |||||
| this.uDataGridView1.AllowUserToResizeColumns = false; | |||||
| this.uDataGridView1.AllowUserToResizeRows = false; | |||||
| dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); | |||||
| this.uDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; | |||||
| this.uDataGridView1.BackgroundColor = System.Drawing.Color.White; | |||||
| dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; | |||||
| dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; | |||||
| dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 12F); | |||||
| dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; | |||||
| dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; | |||||
| dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | |||||
| dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | |||||
| this.uDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; | |||||
| this.uDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | |||||
| this.uDataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | |||||
| this.Column1, | |||||
| this.Column2, | |||||
| this.Column3, | |||||
| this.Column4}); | |||||
| this.uDataGridView1.Location = new System.Drawing.Point(12, 175); | |||||
| this.uDataGridView1.MultiSelect = false; | |||||
| this.uDataGridView1.Name = "uDataGridView1"; | |||||
| this.uDataGridView1.ReadOnly = true; | |||||
| this.uDataGridView1.RowHeadersVisible = false; | |||||
| dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); | |||||
| this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6; | |||||
| this.uDataGridView1.RowTemplate.Height = 23; | |||||
| this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | |||||
| this.uDataGridView1.Size = new System.Drawing.Size(377, 480); | |||||
| this.uDataGridView1.TabIndex = 4; | |||||
| // | |||||
| // Column1 | |||||
| // | |||||
| this.Column1.HeaderText = "屠宰顺序"; | |||||
| this.Column1.Name = "Column1"; | |||||
| this.Column1.ReadOnly = true; | |||||
| // | |||||
| // Column2 | |||||
| // | |||||
| this.Column2.HeaderText = "工艺"; | |||||
| this.Column2.Name = "Column2"; | |||||
| this.Column2.ReadOnly = true; | |||||
| this.Column2.Width = 80; | |||||
| // | |||||
| // Column3 | |||||
| // | |||||
| this.Column3.HeaderText = "头数"; | |||||
| this.Column3.Name = "Column3"; | |||||
| this.Column3.ReadOnly = true; | |||||
| this.Column3.Width = 80; | |||||
| // | |||||
| // Column4 | |||||
| // | |||||
| this.Column4.HeaderText = "已宰"; | |||||
| this.Column4.Name = "Column4"; | |||||
| this.Column4.ReadOnly = true; | |||||
| this.Column4.Width = 80; | |||||
| // | |||||
| // label2 | |||||
| // | |||||
| this.label2.AutoSize = true; | |||||
| this.label2.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.label2.Location = new System.Drawing.Point(447, 101); | |||||
| this.label2.Name = "label2"; | |||||
| this.label2.Size = new System.Drawing.Size(109, 20); | |||||
| this.label2.TabIndex = 5; | |||||
| this.label2.Text = "屠宰顺序:"; | |||||
| // | |||||
| // label3 | |||||
| // | |||||
| this.label3.AutoSize = true; | |||||
| this.label3.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.label3.Location = new System.Drawing.Point(562, 101); | |||||
| this.label3.Name = "label3"; | |||||
| this.label3.Size = new System.Drawing.Size(19, 20); | |||||
| this.label3.TabIndex = 6; | |||||
| this.label3.Text = "0"; | |||||
| // | |||||
| // label4 | |||||
| // | |||||
| this.label4.AutoSize = true; | |||||
| this.label4.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.label4.Location = new System.Drawing.Point(617, 100); | |||||
| this.label4.Name = "label4"; | |||||
| this.label4.Size = new System.Drawing.Size(69, 20); | |||||
| this.label4.TabIndex = 7; | |||||
| this.label4.Text = "已宰:"; | |||||
| // | |||||
| // label5 | |||||
| // | |||||
| this.label5.AutoSize = true; | |||||
| this.label5.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.label5.Location = new System.Drawing.Point(702, 100); | |||||
| this.label5.Name = "label5"; | |||||
| this.label5.Size = new System.Drawing.Size(19, 20); | |||||
| this.label5.TabIndex = 8; | |||||
| this.label5.Text = "0"; | |||||
| // | |||||
| // groupBox1 | |||||
| // | |||||
| this.groupBox1.Controls.Add(this.flowLayoutPanel1); | |||||
| this.groupBox1.Location = new System.Drawing.Point(439, 154); | |||||
| this.groupBox1.Name = "groupBox1"; | |||||
| this.groupBox1.Size = new System.Drawing.Size(345, 288); | |||||
| this.groupBox1.TabIndex = 9; | |||||
| this.groupBox1.TabStop = false; | |||||
| this.groupBox1.Text = "烫褪"; | |||||
| // | |||||
| // groupBox2 | |||||
| // | |||||
| this.groupBox2.Controls.Add(this.flowLayoutPanel2); | |||||
| this.groupBox2.Location = new System.Drawing.Point(439, 473); | |||||
| this.groupBox2.Name = "groupBox2"; | |||||
| this.groupBox2.Size = new System.Drawing.Size(345, 332); | |||||
| this.groupBox2.TabIndex = 10; | |||||
| this.groupBox2.TabStop = false; | |||||
| this.groupBox2.Text = "毛剥"; | |||||
| // | |||||
| // flowLayoutPanel1 | |||||
| // | |||||
| this.flowLayoutPanel1.Location = new System.Drawing.Point(12, 21); | |||||
| this.flowLayoutPanel1.Name = "flowLayoutPanel1"; | |||||
| this.flowLayoutPanel1.Size = new System.Drawing.Size(319, 251); | |||||
| this.flowLayoutPanel1.TabIndex = 0; | |||||
| // | |||||
| // flowLayoutPanel2 | |||||
| // | |||||
| this.flowLayoutPanel2.Location = new System.Drawing.Point(12, 32); | |||||
| this.flowLayoutPanel2.Name = "flowLayoutPanel2"; | |||||
| this.flowLayoutPanel2.Size = new System.Drawing.Size(319, 251); | |||||
| this.flowLayoutPanel2.TabIndex = 1; | |||||
| // | |||||
| // groupBox3 | |||||
| // | |||||
| this.groupBox3.Location = new System.Drawing.Point(853, 154); | |||||
| this.groupBox3.Name = "groupBox3"; | |||||
| this.groupBox3.Size = new System.Drawing.Size(384, 651); | |||||
| this.groupBox3.TabIndex = 11; | |||||
| this.groupBox3.TabStop = false; | |||||
| this.groupBox3.Text = "记录"; | |||||
| // | |||||
| // enableWeight | |||||
| // | |||||
| this.enableWeight.AutoSize = true; | |||||
| this.enableWeight.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.enableWeight.Location = new System.Drawing.Point(10, 91); | |||||
| this.enableWeight.Name = "enableWeight"; | |||||
| this.enableWeight.Size = new System.Drawing.Size(108, 24); | |||||
| this.enableWeight.TabIndex = 31; | |||||
| this.enableWeight.Text = "启用称重"; | |||||
| this.enableWeight.UseVisualStyleBackColor = true; | |||||
| // | |||||
| // isPrintCheckBox | |||||
| // | |||||
| this.isPrintCheckBox.AutoSize = true; | |||||
| this.isPrintCheckBox.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.isPrintCheckBox.Location = new System.Drawing.Point(281, 2); | |||||
| this.isPrintCheckBox.Name = "isPrintCheckBox"; | |||||
| this.isPrintCheckBox.Size = new System.Drawing.Size(108, 24); | |||||
| this.isPrintCheckBox.TabIndex = 30; | |||||
| this.isPrintCheckBox.Text = "打印条码"; | |||||
| this.isPrintCheckBox.UseVisualStyleBackColor = true; | |||||
| // | |||||
| // printBtn | |||||
| // | |||||
| this.printBtn.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.printBtn.Location = new System.Drawing.Point(287, 37); | |||||
| this.printBtn.Name = "printBtn"; | |||||
| this.printBtn.Size = new System.Drawing.Size(102, 43); | |||||
| this.printBtn.TabIndex = 29; | |||||
| this.printBtn.Text = "打印测试"; | |||||
| this.printBtn.UseVisualStyleBackColor = true; | |||||
| // | |||||
| // panel1 | |||||
| // | |||||
| this.panel1.BackColor = System.Drawing.Color.Black; | |||||
| this.panel1.Controls.Add(this.lblChengZhong); | |||||
| this.panel1.Location = new System.Drawing.Point(12, 2); | |||||
| this.panel1.Name = "panel1"; | |||||
| this.panel1.Size = new System.Drawing.Size(237, 78); | |||||
| this.panel1.TabIndex = 28; | |||||
| // | |||||
| // lblChengZhong | |||||
| // | |||||
| this.lblChengZhong.AutoSize = true; | |||||
| this.lblChengZhong.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); | |||||
| this.lblChengZhong.ForeColor = System.Drawing.Color.Red; | |||||
| this.lblChengZhong.Location = new System.Drawing.Point(15, 18); | |||||
| this.lblChengZhong.Name = "lblChengZhong"; | |||||
| this.lblChengZhong.Size = new System.Drawing.Size(97, 40); | |||||
| this.lblChengZhong.TabIndex = 0; | |||||
| this.lblChengZhong.Text = "0.00"; | |||||
| // | |||||
| // GradeFrom | |||||
| // | |||||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||||
| this.ClientSize = new System.Drawing.Size(1276, 865); | |||||
| this.Controls.Add(this.enableWeight); | |||||
| this.Controls.Add(this.groupBox3); | |||||
| this.Controls.Add(this.isPrintCheckBox); | |||||
| this.Controls.Add(this.groupBox2); | |||||
| this.Controls.Add(this.printBtn); | |||||
| this.Controls.Add(this.groupBox1); | |||||
| this.Controls.Add(this.panel1); | |||||
| this.Controls.Add(this.label5); | |||||
| this.Controls.Add(this.label4); | |||||
| this.Controls.Add(this.label3); | |||||
| this.Controls.Add(this.label2); | |||||
| this.Controls.Add(this.uDataGridView1); | |||||
| this.Controls.Add(this.button1); | |||||
| this.Controls.Add(this.uDatePicker1); | |||||
| this.Controls.Add(this.label1); | |||||
| this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; | |||||
| this.MaximizeBox = false; | |||||
| this.Name = "GradeFrom"; | |||||
| this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; | |||||
| this.Text = "称重定级"; | |||||
| ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit(); | |||||
| this.groupBox1.ResumeLayout(false); | |||||
| this.groupBox2.ResumeLayout(false); | |||||
| this.panel1.ResumeLayout(false); | |||||
| this.panel1.PerformLayout(); | |||||
| this.ResumeLayout(false); | |||||
| this.PerformLayout(); | |||||
| } | |||||
| #endregion | |||||
| private System.Windows.Forms.Label label1; | |||||
| private BWP.WinFormControl.UDatePicker uDatePicker1; | |||||
| private System.Windows.Forms.Button button1; | |||||
| private BWP.WinFormControl.UDataGridView uDataGridView1; | |||||
| private System.Windows.Forms.DataGridViewTextBoxColumn Column1; | |||||
| private System.Windows.Forms.DataGridViewTextBoxColumn Column2; | |||||
| private System.Windows.Forms.DataGridViewTextBoxColumn Column3; | |||||
| private System.Windows.Forms.DataGridViewTextBoxColumn Column4; | |||||
| private System.Windows.Forms.Label label2; | |||||
| private System.Windows.Forms.Label label3; | |||||
| private System.Windows.Forms.Label label4; | |||||
| private System.Windows.Forms.Label label5; | |||||
| private System.Windows.Forms.GroupBox groupBox1; | |||||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; | |||||
| private System.Windows.Forms.GroupBox groupBox2; | |||||
| private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; | |||||
| private System.Windows.Forms.GroupBox groupBox3; | |||||
| private System.Windows.Forms.CheckBox enableWeight; | |||||
| private System.Windows.Forms.CheckBox isPrintCheckBox; | |||||
| private System.Windows.Forms.Button printBtn; | |||||
| private System.Windows.Forms.Panel panel1; | |||||
| private System.Windows.Forms.Label lblChengZhong; | |||||
| } | |||||
| } | |||||
| @ -1,22 +0,0 @@ | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Threading.Tasks; | |||||
| using System.Windows.Forms; | |||||
| namespace WeighAndGrading | |||||
| { | |||||
| static class Program | |||||
| { | |||||
| /// <summary> | |||||
| /// 应用程序的主入口点。 | |||||
| /// </summary> | |||||
| [STAThread] | |||||
| static void Main() | |||||
| { | |||||
| Application.EnableVisualStyles(); | |||||
| Application.SetCompatibleTextRenderingDefault(false); | |||||
| Application.Run(new Form1()); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,71 +0,0 @@ | |||||
| //------------------------------------------------------------------------------ | |||||
| // <auto-generated> | |||||
| // 此代码由工具生成。 | |||||
| // 运行时版本: 4.0.30319.42000 | |||||
| // | |||||
| // 对此文件的更改可能会导致不正确的行为,并且如果 | |||||
| // 重新生成代码,这些更改将丢失。 | |||||
| // </auto-generated> | |||||
| //------------------------------------------------------------------------------ | |||||
| namespace WeighAndGrading.Properties | |||||
| { | |||||
| /// <summary> | |||||
| /// 一个强类型的资源类,用于查找本地化的字符串等。 | |||||
| /// </summary> | |||||
| // 此类是由 StronglyTypedResourceBuilder | |||||
| // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 | |||||
| // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen | |||||
| // (以 /str 作为命令选项),或重新生成 VS 项目。 | |||||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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() | |||||
| { | |||||
| } | |||||
| /// <summary> | |||||
| /// 返回此类使用的、缓存的 ResourceManager 实例。 | |||||
| /// </summary> | |||||
| [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||||
| internal static global::System.Resources.ResourceManager ResourceManager | |||||
| { | |||||
| get | |||||
| { | |||||
| if ((resourceMan == null)) | |||||
| { | |||||
| global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WeighAndGrading.Properties.Resources", typeof(Resources).Assembly); | |||||
| resourceMan = temp; | |||||
| } | |||||
| return resourceMan; | |||||
| } | |||||
| } | |||||
| /// <summary> | |||||
| /// 为所有资源查找重写当前线程的 CurrentUICulture 属性, | |||||
| /// 方法是使用此强类型资源类。 | |||||
| /// </summary> | |||||
| [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||||
| internal static global::System.Globalization.CultureInfo Culture | |||||
| { | |||||
| get | |||||
| { | |||||
| return resourceCulture; | |||||
| } | |||||
| set | |||||
| { | |||||
| resourceCulture = value; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,117 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <root> | |||||
| <!-- | |||||
| Microsoft ResX Schema | |||||
| Version 2.0 | |||||
| The primary goals of this format is to allow a simple XML format | |||||
| that is mostly human readable. The generation and parsing of the | |||||
| various data types are done through the TypeConverter classes | |||||
| associated with the data types. | |||||
| Example: | |||||
| ... ado.net/XML headers & schema ... | |||||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||||
| <resheader name="version">2.0</resheader> | |||||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||||
| </data> | |||||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||||
| <comment>This is a comment</comment> | |||||
| </data> | |||||
| There are any number of "resheader" rows that contain simple | |||||
| name/value pairs. | |||||
| Each data row contains a name, and value. The row also contains a | |||||
| type or mimetype. Type corresponds to a .NET class that support | |||||
| text/value conversion through the TypeConverter architecture. | |||||
| Classes that don't support this are serialized and stored with the | |||||
| mimetype set. | |||||
| The mimetype is used for serialized objects, and tells the | |||||
| ResXResourceReader how to depersist the object. This is currently not | |||||
| extensible. For a given mimetype the value must be set accordingly: | |||||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||||
| that the ResXResourceWriter will generate, however the reader can | |||||
| read any of the formats listed below. | |||||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Serialization.Formatters.Binary.BinaryFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||||
| value : The object must be serialized into a byte array | |||||
| : using a System.ComponentModel.TypeConverter | |||||
| : and then encoded with base64 encoding. | |||||
| --> | |||||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||||
| <xsd:complexType> | |||||
| <xsd:choice maxOccurs="unbounded"> | |||||
| <xsd:element name="metadata"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| <xsd:attribute name="type" type="xsd:string" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="assembly"> | |||||
| <xsd:complexType> | |||||
| <xsd:attribute name="alias" type="xsd:string" /> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="data"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | |||||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="resheader"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:choice> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:schema> | |||||
| <resheader name="resmimetype"> | |||||
| <value>text/microsoft-resx</value> | |||||
| </resheader> | |||||
| <resheader name="version"> | |||||
| <value>2.0</value> | |||||
| </resheader> | |||||
| <resheader name="reader"> | |||||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| <resheader name="writer"> | |||||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| </root> | |||||
| @ -1,30 +0,0 @@ | |||||
| //------------------------------------------------------------------------------ | |||||
| // <auto-generated> | |||||
| // This code was generated by a tool. | |||||
| // Runtime Version:4.0.30319.42000 | |||||
| // | |||||
| // Changes to this file may cause incorrect behavior and will be lost if | |||||
| // the code is regenerated. | |||||
| // </auto-generated> | |||||
| //------------------------------------------------------------------------------ | |||||
| namespace WeighAndGrading.Properties | |||||
| { | |||||
| [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.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; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,7 +0,0 @@ | |||||
| <?xml version='1.0' encoding='utf-8'?> | |||||
| <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |||||
| <Profiles> | |||||
| <Profile Name="(Default)" /> | |||||
| </Profiles> | |||||
| <Settings /> | |||||
| </SettingsFile> | |||||
| @ -1,6 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <configuration> | |||||
| <startup> | |||||
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |||||
| </startup> | |||||
| </configuration> | |||||
| @ -1,61 +0,0 @@ | |||||
| using BO.Utils; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.IO; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| using System.Windows.Forms; | |||||
| namespace WeightClient | |||||
| { | |||||
| public class AppContext | |||||
| { | |||||
| private static string loginConfigPath = Application.StartupPath + "\\Config.xml"; | |||||
| public ServerUrlConfig UrlConfig | |||||
| { | |||||
| get; | |||||
| set; | |||||
| } | |||||
| public LoginUserInfo UserConfig | |||||
| { | |||||
| get; | |||||
| set; | |||||
| } | |||||
| private AppContext() | |||||
| { | |||||
| UrlConfig = new ServerUrlConfig(); | |||||
| UserConfig = new LoginUserInfo(); | |||||
| } | |||||
| public static AppContext Context | |||||
| { | |||||
| get | |||||
| { | |||||
| if (_appContext == null) | |||||
| _appContext = CreateAppContext(); | |||||
| return _appContext; | |||||
| } | |||||
| } | |||||
| private static AppContext _appContext; | |||||
| static AppContext CreateAppContext() | |||||
| { | |||||
| var config = new AppContext(); | |||||
| if (!File.Exists(loginConfigPath)) | |||||
| { | |||||
| XmlUtil.SerializerObjToFile(config, loginConfigPath); | |||||
| } | |||||
| else | |||||
| config = XmlUtil.DeserializeFromFile<AppContext>(loginConfigPath); | |||||
| return config; | |||||
| } | |||||
| public void Save() | |||||
| { | |||||
| XmlUtil.SerializerObjToFile(_appContext, loginConfigPath); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,143 +0,0 @@ | |||||
| namespace WeightClient | |||||
| { | |||||
| partial class Login | |||||
| { | |||||
| /// <summary> | |||||
| /// Required designer variable. | |||||
| /// </summary> | |||||
| private System.ComponentModel.IContainer components = null; | |||||
| /// <summary> | |||||
| /// Clean up any resources being used. | |||||
| /// </summary> | |||||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||||
| protected override void Dispose(bool disposing) | |||||
| { | |||||
| if (disposing && (components != null)) | |||||
| { | |||||
| components.Dispose(); | |||||
| } | |||||
| base.Dispose(disposing); | |||||
| } | |||||
| #region Windows Form Designer generated code | |||||
| /// <summary> | |||||
| /// Required method for Designer support - do not modify | |||||
| /// the contents of this method with the code editor. | |||||
| /// </summary> | |||||
| private void InitializeComponent() | |||||
| { | |||||
| this.closeBtn = new System.Windows.Forms.Button(); | |||||
| this.loginBtn = new System.Windows.Forms.Button(); | |||||
| this.settingBtn = new System.Windows.Forms.Button(); | |||||
| this.pwdTxt = new System.Windows.Forms.TextBox(); | |||||
| this.userNameTxt = new System.Windows.Forms.TextBox(); | |||||
| this.label2 = new System.Windows.Forms.Label(); | |||||
| this.label1 = new System.Windows.Forms.Label(); | |||||
| this.SuspendLayout(); | |||||
| // | |||||
| // closeBtn | |||||
| // | |||||
| this.closeBtn.Font = new System.Drawing.Font("宋体", 20F); | |||||
| this.closeBtn.Location = new System.Drawing.Point(218, 208); | |||||
| this.closeBtn.Name = "closeBtn"; | |||||
| this.closeBtn.Size = new System.Drawing.Size(81, 53); | |||||
| this.closeBtn.TabIndex = 13; | |||||
| this.closeBtn.Text = "关闭"; | |||||
| this.closeBtn.UseVisualStyleBackColor = true; | |||||
| this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); | |||||
| // | |||||
| // loginBtn | |||||
| // | |||||
| this.loginBtn.Font = new System.Drawing.Font("宋体", 20F); | |||||
| this.loginBtn.Location = new System.Drawing.Point(71, 208); | |||||
| this.loginBtn.Name = "loginBtn"; | |||||
| this.loginBtn.Size = new System.Drawing.Size(81, 53); | |||||
| this.loginBtn.TabIndex = 12; | |||||
| this.loginBtn.Text = "登录"; | |||||
| this.loginBtn.UseVisualStyleBackColor = true; | |||||
| this.loginBtn.Click += new System.EventHandler(this.loginBtn_Click); | |||||
| // | |||||
| // settingBtn | |||||
| // | |||||
| this.settingBtn.Font = new System.Drawing.Font("宋体", 20F); | |||||
| this.settingBtn.Location = new System.Drawing.Point(366, 208); | |||||
| this.settingBtn.Name = "settingBtn"; | |||||
| this.settingBtn.Size = new System.Drawing.Size(81, 53); | |||||
| this.settingBtn.TabIndex = 11; | |||||
| this.settingBtn.Text = "设置"; | |||||
| this.settingBtn.UseVisualStyleBackColor = true; | |||||
| this.settingBtn.Click += new System.EventHandler(this.settingBtn_Click); | |||||
| // | |||||
| // pwdTxt | |||||
| // | |||||
| this.pwdTxt.Font = new System.Drawing.Font("宋体", 25F); | |||||
| this.pwdTxt.Location = new System.Drawing.Point(228, 124); | |||||
| this.pwdTxt.Name = "pwdTxt"; | |||||
| this.pwdTxt.PasswordChar = '*'; | |||||
| this.pwdTxt.Size = new System.Drawing.Size(219, 46); | |||||
| this.pwdTxt.TabIndex = 10; | |||||
| // | |||||
| // userNameTxt | |||||
| // | |||||
| this.userNameTxt.Font = new System.Drawing.Font("宋体", 25F); | |||||
| this.userNameTxt.Location = new System.Drawing.Point(228, 47); | |||||
| this.userNameTxt.Name = "userNameTxt"; | |||||
| this.userNameTxt.Size = new System.Drawing.Size(219, 46); | |||||
| this.userNameTxt.TabIndex = 9; | |||||
| this.userNameTxt.Click += new System.EventHandler(this.userNameTxt_Click); | |||||
| // | |||||
| // label2 | |||||
| // | |||||
| this.label2.AutoSize = true; | |||||
| this.label2.Font = new System.Drawing.Font("宋体", 30F); | |||||
| this.label2.Location = new System.Drawing.Point(64, 130); | |||||
| this.label2.Name = "label2"; | |||||
| this.label2.Size = new System.Drawing.Size(177, 40); | |||||
| this.label2.TabIndex = 8; | |||||
| this.label2.Text = "密 码:"; | |||||
| // | |||||
| // label1 | |||||
| // | |||||
| this.label1.AutoSize = true; | |||||
| this.label1.Font = new System.Drawing.Font("宋体", 30F); | |||||
| this.label1.Location = new System.Drawing.Point(64, 47); | |||||
| this.label1.Name = "label1"; | |||||
| this.label1.Size = new System.Drawing.Size(177, 40); | |||||
| this.label1.TabIndex = 7; | |||||
| this.label1.Text = "用户名:"; | |||||
| // | |||||
| // Login | |||||
| // | |||||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||||
| this.ClientSize = new System.Drawing.Size(540, 314); | |||||
| this.Controls.Add(this.closeBtn); | |||||
| this.Controls.Add(this.loginBtn); | |||||
| this.Controls.Add(this.settingBtn); | |||||
| this.Controls.Add(this.pwdTxt); | |||||
| this.Controls.Add(this.userNameTxt); | |||||
| this.Controls.Add(this.label2); | |||||
| this.Controls.Add(this.label1); | |||||
| this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; | |||||
| this.MaximizeBox = false; | |||||
| this.Name = "Login"; | |||||
| this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; | |||||
| this.Text = "Login"; | |||||
| this.ResumeLayout(false); | |||||
| this.PerformLayout(); | |||||
| } | |||||
| #endregion | |||||
| private System.Windows.Forms.Button closeBtn; | |||||
| private System.Windows.Forms.Button loginBtn; | |||||
| private System.Windows.Forms.Button settingBtn; | |||||
| private System.Windows.Forms.TextBox pwdTxt; | |||||
| private System.Windows.Forms.TextBox userNameTxt; | |||||
| private System.Windows.Forms.Label label2; | |||||
| private System.Windows.Forms.Label label1; | |||||
| } | |||||
| } | |||||
| @ -1,87 +0,0 @@ | |||||
| using BO.Utils; | |||||
| using BWP.WinFormControl; | |||||
| using Forks.JsonRpc.Client; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.ComponentModel; | |||||
| using System.Data; | |||||
| using System.Drawing; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| using System.Windows.Forms; | |||||
| namespace WeightClient | |||||
| { | |||||
| public partial class Login : Form | |||||
| { | |||||
| bool rpcFacadeInited = false; | |||||
| void IniteRpcFacade() | |||||
| { | |||||
| if (rpcFacadeInited) | |||||
| return; | |||||
| if (string.IsNullOrEmpty(AppContext.Context.UrlConfig.ServerUrl)) | |||||
| throw new Exception("请先设置服务器地址"); | |||||
| RpcFacade.Init(AppContext.Context.UrlConfig.ServerUrl, "B3ButcherManageClient"); | |||||
| rpcFacadeInited = true; | |||||
| } | |||||
| public Login() | |||||
| { | |||||
| InitializeComponent(); | |||||
| userNameTxt.Text = AppContext.Context.UserConfig.UserName; | |||||
| } | |||||
| private void settingBtn_Click(object sender, EventArgs e) | |||||
| { | |||||
| var f = new SettingForm(); | |||||
| f.ShowDialog(); | |||||
| } | |||||
| private async void loginBtn_Click(object sender, EventArgs e) | |||||
| { | |||||
| var username = userNameTxt.Text.Trim(); | |||||
| var pwd = pwdTxt.Text; | |||||
| if (string.IsNullOrEmpty(username)) | |||||
| throw new Exception("请输入用户名"); | |||||
| IniteRpcFacade(); | |||||
| await Task.Factory.StartNew(() => RpcFacade.Login(username, pwd)); | |||||
| AppContext.Context.UserConfig.ID = 1; | |||||
| AppContext.Context.UserConfig.UserName = username; | |||||
| AppContext.Context.Save(); | |||||
| // var form = new ButcherOrderForm(); | |||||
| //form.Show(); | |||||
| Hide(); | |||||
| } | |||||
| private void closeBtn_Click(object sender, EventArgs e) | |||||
| { | |||||
| Application.Exit(); | |||||
| } | |||||
| private void userNameTxt_Click(object sender, EventArgs e) | |||||
| { | |||||
| IniteRpcFacade(); | |||||
| var keyBoard = new NumberPad(); | |||||
| if (keyBoard.ShowDialog() == true) | |||||
| { | |||||
| string errorInfo; | |||||
| userNameTxt.Text = LoginRpcUtil.GetUserNameByCode(keyBoard.Result, out errorInfo); | |||||
| //if (string.IsNullOrEmpty(userNameTxt.Text)) | |||||
| // throw new Exception("工号输入错误"); | |||||
| if (!string.IsNullOrEmpty(errorInfo)) | |||||
| MessageBox.Show(errorInfo); | |||||
| } | |||||
| } | |||||
| private void pwdTxt_Click(object sender, EventArgs e) | |||||
| { | |||||
| var keyBoard = new VirtualKeyPad(); | |||||
| if (keyBoard.ShowDialog() == true) | |||||
| pwdTxt.Text = keyBoard.Result; | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,120 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <root> | |||||
| <!-- | |||||
| Microsoft ResX Schema | |||||
| Version 2.0 | |||||
| The primary goals of this format is to allow a simple XML format | |||||
| that is mostly human readable. The generation and parsing of the | |||||
| various data types are done through the TypeConverter classes | |||||
| associated with the data types. | |||||
| Example: | |||||
| ... ado.net/XML headers & schema ... | |||||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||||
| <resheader name="version">2.0</resheader> | |||||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||||
| </data> | |||||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||||
| <comment>This is a comment</comment> | |||||
| </data> | |||||
| There are any number of "resheader" rows that contain simple | |||||
| name/value pairs. | |||||
| Each data row contains a name, and value. The row also contains a | |||||
| type or mimetype. Type corresponds to a .NET class that support | |||||
| text/value conversion through the TypeConverter architecture. | |||||
| Classes that don't support this are serialized and stored with the | |||||
| mimetype set. | |||||
| The mimetype is used for serialized objects, and tells the | |||||
| ResXResourceReader how to depersist the object. This is currently not | |||||
| extensible. For a given mimetype the value must be set accordingly: | |||||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||||
| that the ResXResourceWriter will generate, however the reader can | |||||
| read any of the formats listed below. | |||||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||||
| value : The object must be serialized into a byte array | |||||
| : using a System.ComponentModel.TypeConverter | |||||
| : and then encoded with base64 encoding. | |||||
| --> | |||||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||||
| <xsd:complexType> | |||||
| <xsd:choice maxOccurs="unbounded"> | |||||
| <xsd:element name="metadata"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||||
| <xsd:attribute name="type" type="xsd:string" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||||
| <xsd:attribute ref="xml:space" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="assembly"> | |||||
| <xsd:complexType> | |||||
| <xsd:attribute name="alias" type="xsd:string" /> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="data"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||||
| <xsd:attribute ref="xml:space" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="resheader"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:choice> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:schema> | |||||
| <resheader name="resmimetype"> | |||||
| <value>text/microsoft-resx</value> | |||||
| </resheader> | |||||
| <resheader name="version"> | |||||
| <value>2.0</value> | |||||
| </resheader> | |||||
| <resheader name="reader"> | |||||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| <resheader name="writer"> | |||||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| </root> | |||||
| @ -1,76 +0,0 @@ | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Diagnostics; | |||||
| using System.Linq; | |||||
| using System.Threading; | |||||
| using System.Threading.Tasks; | |||||
| using System.Windows.Forms; | |||||
| namespace WeightClient | |||||
| { | |||||
| static class Program | |||||
| { | |||||
| /// <summary> | |||||
| /// 应用程序的主入口点。 | |||||
| /// </summary> | |||||
| [STAThread] | |||||
| static void Main() | |||||
| { | |||||
| try | |||||
| { | |||||
| //处理未捕获的异常 | |||||
| Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); | |||||
| //处理UI线程异常 | |||||
| Application.ThreadException += Application_ThreadException; | |||||
| //处理非UI线程异常 | |||||
| AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; | |||||
| var aProcessName = Process.GetCurrentProcess().ProcessName; | |||||
| if ((Process.GetProcessesByName(aProcessName)).GetUpperBound(0) > 0) | |||||
| { | |||||
| MessageBox.Show(@"系统已经在运行中,如果要重新启动,请从进程中关闭...", @"系统警告", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); | |||||
| } | |||||
| else | |||||
| { | |||||
| Application.EnableVisualStyles(); | |||||
| Application.SetCompatibleTextRenderingDefault(false); | |||||
| Application.Run(new Login()); | |||||
| } | |||||
| } | |||||
| catch (Exception e) | |||||
| { | |||||
| // LogUtil.WriteError(e); | |||||
| MessageBox.Show("错误:" + e.Message); | |||||
| } | |||||
| } | |||||
| ///<summary> | |||||
| /// 在发生未处理异常时处理的方法 | |||||
| ///</summary> | |||||
| ///<param name="sender"> </param> | |||||
| ///<param name="e"> </param> | |||||
| private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e) | |||||
| { | |||||
| var ex = e.Exception; | |||||
| var err = String.Empty; | |||||
| if (ex != null) | |||||
| { | |||||
| //LogUtil.WriteError(ex); | |||||
| err = ex.Message; | |||||
| } | |||||
| MessageBox.Show("错误:" + err); | |||||
| } | |||||
| private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) | |||||
| { | |||||
| var err = String.Empty; | |||||
| var ex = e.ExceptionObject as Exception; | |||||
| if (ex != null) | |||||
| { | |||||
| //LogUtil.WriteError(ex); | |||||
| err = ex.Message; | |||||
| } | |||||
| MessageBox.Show("错误:" + err); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,36 +0,0 @@ | |||||
| using System.Reflection; | |||||
| using System.Runtime.CompilerServices; | |||||
| using System.Runtime.InteropServices; | |||||
| // 有关程序集的常规信息通过以下 | |||||
| // 特性集控制。更改这些特性值可修改 | |||||
| // 与程序集关联的信息。 | |||||
| [assembly: AssemblyTitle("WeightClient")] | |||||
| [assembly: AssemblyDescription("")] | |||||
| [assembly: AssemblyConfiguration("")] | |||||
| [assembly: AssemblyCompany("")] | |||||
| [assembly: AssemblyProduct("WeightClient")] | |||||
| [assembly: AssemblyCopyright("Copyright © 2017")] | |||||
| [assembly: AssemblyTrademark("")] | |||||
| [assembly: AssemblyCulture("")] | |||||
| // 将 ComVisible 设置为 false 使此程序集中的类型 | |||||
| // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, | |||||
| // 则将该类型上的 ComVisible 特性设置为 true。 | |||||
| [assembly: ComVisible(false)] | |||||
| // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID | |||||
| [assembly: Guid("062ee4a6-19d4-47a4-afe6-57869c15442b")] | |||||
| // 程序集的版本信息由下面四个值组成: | |||||
| // | |||||
| // 主版本 | |||||
| // 次版本 | |||||
| // 生成号 | |||||
| // 修订号 | |||||
| // | |||||
| // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, | |||||
| // 方法是按如下所示使用“*”: | |||||
| // [assembly: AssemblyVersion("1.0.*")] | |||||
| [assembly: AssemblyVersion("1.0.0.0")] | |||||
| [assembly: AssemblyFileVersion("1.0.0.0")] | |||||
| @ -1,71 +0,0 @@ | |||||
| //------------------------------------------------------------------------------ | |||||
| // <auto-generated> | |||||
| // 此代码由工具生成。 | |||||
| // 运行时版本: 4.0.30319.42000 | |||||
| // | |||||
| // 对此文件的更改可能会导致不正确的行为,并且如果 | |||||
| // 重新生成代码,这些更改将丢失。 | |||||
| // </auto-generated> | |||||
| //------------------------------------------------------------------------------ | |||||
| namespace WeightClient.Properties | |||||
| { | |||||
| /// <summary> | |||||
| /// 一个强类型的资源类,用于查找本地化的字符串等。 | |||||
| /// </summary> | |||||
| // 此类是由 StronglyTypedResourceBuilder | |||||
| // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 | |||||
| // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen | |||||
| // (以 /str 作为命令选项),或重新生成 VS 项目。 | |||||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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() | |||||
| { | |||||
| } | |||||
| /// <summary> | |||||
| /// 返回此类使用的、缓存的 ResourceManager 实例。 | |||||
| /// </summary> | |||||
| [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||||
| internal static global::System.Resources.ResourceManager ResourceManager | |||||
| { | |||||
| get | |||||
| { | |||||
| if ((resourceMan == null)) | |||||
| { | |||||
| global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WeightClient.Properties.Resources", typeof(Resources).Assembly); | |||||
| resourceMan = temp; | |||||
| } | |||||
| return resourceMan; | |||||
| } | |||||
| } | |||||
| /// <summary> | |||||
| /// 为所有资源查找重写当前线程的 CurrentUICulture 属性, | |||||
| /// 方法是使用此强类型资源类。 | |||||
| /// </summary> | |||||
| [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||||
| internal static global::System.Globalization.CultureInfo Culture | |||||
| { | |||||
| get | |||||
| { | |||||
| return resourceCulture; | |||||
| } | |||||
| set | |||||
| { | |||||
| resourceCulture = value; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,117 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <root> | |||||
| <!-- | |||||
| Microsoft ResX Schema | |||||
| Version 2.0 | |||||
| The primary goals of this format is to allow a simple XML format | |||||
| that is mostly human readable. The generation and parsing of the | |||||
| various data types are done through the TypeConverter classes | |||||
| associated with the data types. | |||||
| Example: | |||||
| ... ado.net/XML headers & schema ... | |||||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||||
| <resheader name="version">2.0</resheader> | |||||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||||
| </data> | |||||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||||
| <comment>This is a comment</comment> | |||||
| </data> | |||||
| There are any number of "resheader" rows that contain simple | |||||
| name/value pairs. | |||||
| Each data row contains a name, and value. The row also contains a | |||||
| type or mimetype. Type corresponds to a .NET class that support | |||||
| text/value conversion through the TypeConverter architecture. | |||||
| Classes that don't support this are serialized and stored with the | |||||
| mimetype set. | |||||
| The mimetype is used for serialized objects, and tells the | |||||
| ResXResourceReader how to depersist the object. This is currently not | |||||
| extensible. For a given mimetype the value must be set accordingly: | |||||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||||
| that the ResXResourceWriter will generate, however the reader can | |||||
| read any of the formats listed below. | |||||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Serialization.Formatters.Binary.BinaryFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||||
| value : The object must be serialized into a byte array | |||||
| : using a System.ComponentModel.TypeConverter | |||||
| : and then encoded with base64 encoding. | |||||
| --> | |||||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||||
| <xsd:complexType> | |||||
| <xsd:choice maxOccurs="unbounded"> | |||||
| <xsd:element name="metadata"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| <xsd:attribute name="type" type="xsd:string" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="assembly"> | |||||
| <xsd:complexType> | |||||
| <xsd:attribute name="alias" type="xsd:string" /> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="data"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | |||||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="resheader"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:choice> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:schema> | |||||
| <resheader name="resmimetype"> | |||||
| <value>text/microsoft-resx</value> | |||||
| </resheader> | |||||
| <resheader name="version"> | |||||
| <value>2.0</value> | |||||
| </resheader> | |||||
| <resheader name="reader"> | |||||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| <resheader name="writer"> | |||||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| </root> | |||||
| @ -1,30 +0,0 @@ | |||||
| //------------------------------------------------------------------------------ | |||||
| // <auto-generated> | |||||
| // This code was generated by a tool. | |||||
| // Runtime Version:4.0.30319.42000 | |||||
| // | |||||
| // Changes to this file may cause incorrect behavior and will be lost if | |||||
| // the code is regenerated. | |||||
| // </auto-generated> | |||||
| //------------------------------------------------------------------------------ | |||||
| namespace WeightClient.Properties | |||||
| { | |||||
| [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||||
| [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.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; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,7 +0,0 @@ | |||||
| <?xml version='1.0' encoding='utf-8'?> | |||||
| <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |||||
| <Profiles> | |||||
| <Profile Name="(Default)" /> | |||||
| </Profiles> | |||||
| <Settings /> | |||||
| </SettingsFile> | |||||
| @ -1,103 +0,0 @@ | |||||
| namespace WeightClient | |||||
| { | |||||
| partial class SettingForm | |||||
| { | |||||
| /// <summary> | |||||
| /// Required designer variable. | |||||
| /// </summary> | |||||
| private System.ComponentModel.IContainer components = null; | |||||
| /// <summary> | |||||
| /// Clean up any resources being used. | |||||
| /// </summary> | |||||
| /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||||
| protected override void Dispose(bool disposing) | |||||
| { | |||||
| if (disposing && (components != null)) | |||||
| { | |||||
| components.Dispose(); | |||||
| } | |||||
| base.Dispose(disposing); | |||||
| } | |||||
| #region Windows Form Designer generated code | |||||
| /// <summary> | |||||
| /// Required method for Designer support - do not modify | |||||
| /// the contents of this method with the code editor. | |||||
| /// </summary> | |||||
| private void InitializeComponent() | |||||
| { | |||||
| this.cancelBtn = new System.Windows.Forms.Button(); | |||||
| this.saveBtn = new System.Windows.Forms.Button(); | |||||
| this.uTextBoxWithPad1 = new BWP.WinFormControl.UTextBoxWithPad(); | |||||
| this.label1 = new System.Windows.Forms.Label(); | |||||
| this.SuspendLayout(); | |||||
| // | |||||
| // cancelBtn | |||||
| // | |||||
| this.cancelBtn.Font = new System.Drawing.Font("宋体", 20F); | |||||
| this.cancelBtn.Location = new System.Drawing.Point(241, 110); | |||||
| this.cancelBtn.Name = "cancelBtn"; | |||||
| this.cancelBtn.Size = new System.Drawing.Size(81, 53); | |||||
| this.cancelBtn.TabIndex = 7; | |||||
| this.cancelBtn.Text = "关闭"; | |||||
| this.cancelBtn.UseVisualStyleBackColor = true; | |||||
| this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click); | |||||
| // | |||||
| // saveBtn | |||||
| // | |||||
| this.saveBtn.Font = new System.Drawing.Font("宋体", 20F); | |||||
| this.saveBtn.Location = new System.Drawing.Point(100, 110); | |||||
| this.saveBtn.Name = "saveBtn"; | |||||
| this.saveBtn.Size = new System.Drawing.Size(81, 53); | |||||
| this.saveBtn.TabIndex = 6; | |||||
| this.saveBtn.Text = "保存"; | |||||
| this.saveBtn.UseVisualStyleBackColor = true; | |||||
| this.saveBtn.Click += new System.EventHandler(this.saveBtn_Click); | |||||
| // | |||||
| // uTextBoxWithPad1 | |||||
| // | |||||
| this.uTextBoxWithPad1.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.uTextBoxWithPad1.Location = new System.Drawing.Point(140, 41); | |||||
| this.uTextBoxWithPad1.Name = "uTextBoxWithPad1"; | |||||
| this.uTextBoxWithPad1.Size = new System.Drawing.Size(246, 30); | |||||
| this.uTextBoxWithPad1.TabIndex = 5; | |||||
| this.uTextBoxWithPad1.Type = BWP.WinFormControl.UTextBoxWithPad.TextBoxType.Normal; | |||||
| // | |||||
| // label1 | |||||
| // | |||||
| this.label1.AutoSize = true; | |||||
| this.label1.Font = new System.Drawing.Font("宋体", 15F); | |||||
| this.label1.Location = new System.Drawing.Point(18, 44); | |||||
| this.label1.Name = "label1"; | |||||
| this.label1.Size = new System.Drawing.Size(129, 20); | |||||
| this.label1.TabIndex = 4; | |||||
| this.label1.Text = "服务器地址:"; | |||||
| // | |||||
| // SettingForm | |||||
| // | |||||
| this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |||||
| this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||||
| this.ClientSize = new System.Drawing.Size(404, 205); | |||||
| this.Controls.Add(this.cancelBtn); | |||||
| this.Controls.Add(this.saveBtn); | |||||
| this.Controls.Add(this.uTextBoxWithPad1); | |||||
| this.Controls.Add(this.label1); | |||||
| this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; | |||||
| this.MaximizeBox = false; | |||||
| this.Name = "SettingForm"; | |||||
| this.Text = "SettingForm"; | |||||
| this.ResumeLayout(false); | |||||
| this.PerformLayout(); | |||||
| } | |||||
| #endregion | |||||
| private System.Windows.Forms.Button cancelBtn; | |||||
| private System.Windows.Forms.Button saveBtn; | |||||
| private BWP.WinFormControl.UTextBoxWithPad uTextBoxWithPad1; | |||||
| private System.Windows.Forms.Label label1; | |||||
| } | |||||
| } | |||||
| @ -1,33 +0,0 @@ | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.ComponentModel; | |||||
| using System.Data; | |||||
| using System.Drawing; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Threading.Tasks; | |||||
| using System.Windows.Forms; | |||||
| namespace WeightClient | |||||
| { | |||||
| public partial class SettingForm : Form | |||||
| { | |||||
| public SettingForm() | |||||
| { | |||||
| InitializeComponent(); | |||||
| uTextBoxWithPad1.Text = AppContext.Context.UrlConfig.ServerUrl; | |||||
| } | |||||
| private void cancelBtn_Click(object sender, EventArgs e) | |||||
| { | |||||
| this.Close(); | |||||
| } | |||||
| private void saveBtn_Click(object sender, EventArgs e) | |||||
| { | |||||
| AppContext.Context.UrlConfig.ServerUrl = this.uTextBoxWithPad1.Text.Trim(); | |||||
| AppContext.Context.Save(); | |||||
| MessageBox.Show("设置保存成功!"); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,120 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <root> | |||||
| <!-- | |||||
| Microsoft ResX Schema | |||||
| Version 2.0 | |||||
| The primary goals of this format is to allow a simple XML format | |||||
| that is mostly human readable. The generation and parsing of the | |||||
| various data types are done through the TypeConverter classes | |||||
| associated with the data types. | |||||
| Example: | |||||
| ... ado.net/XML headers & schema ... | |||||
| <resheader name="resmimetype">text/microsoft-resx</resheader> | |||||
| <resheader name="version">2.0</resheader> | |||||
| <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||||
| <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||||
| <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||||
| <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||||
| <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||||
| <value>[base64 mime encoded serialized .NET Framework object]</value> | |||||
| </data> | |||||
| <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||||
| <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||||
| <comment>This is a comment</comment> | |||||
| </data> | |||||
| There are any number of "resheader" rows that contain simple | |||||
| name/value pairs. | |||||
| Each data row contains a name, and value. The row also contains a | |||||
| type or mimetype. Type corresponds to a .NET class that support | |||||
| text/value conversion through the TypeConverter architecture. | |||||
| Classes that don't support this are serialized and stored with the | |||||
| mimetype set. | |||||
| The mimetype is used for serialized objects, and tells the | |||||
| ResXResourceReader how to depersist the object. This is currently not | |||||
| extensible. For a given mimetype the value must be set accordingly: | |||||
| Note - application/x-microsoft.net.object.binary.base64 is the format | |||||
| that the ResXResourceWriter will generate, however the reader can | |||||
| read any of the formats listed below. | |||||
| mimetype: application/x-microsoft.net.object.binary.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.soap.base64 | |||||
| value : The object must be serialized with | |||||
| : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||||
| : and then encoded with base64 encoding. | |||||
| mimetype: application/x-microsoft.net.object.bytearray.base64 | |||||
| value : The object must be serialized into a byte array | |||||
| : using a System.ComponentModel.TypeConverter | |||||
| : and then encoded with base64 encoding. | |||||
| --> | |||||
| <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||||
| <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||||
| <xsd:element name="root" msdata:IsDataSet="true"> | |||||
| <xsd:complexType> | |||||
| <xsd:choice maxOccurs="unbounded"> | |||||
| <xsd:element name="metadata"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" use="required" type="xsd:string" /> | |||||
| <xsd:attribute name="type" type="xsd:string" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" /> | |||||
| <xsd:attribute ref="xml:space" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="assembly"> | |||||
| <xsd:complexType> | |||||
| <xsd:attribute name="alias" type="xsd:string" /> | |||||
| <xsd:attribute name="name" type="xsd:string" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="data"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||||
| <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||||
| <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||||
| <xsd:attribute ref="xml:space" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| <xsd:element name="resheader"> | |||||
| <xsd:complexType> | |||||
| <xsd:sequence> | |||||
| <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||||
| </xsd:sequence> | |||||
| <xsd:attribute name="name" type="xsd:string" use="required" /> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:choice> | |||||
| </xsd:complexType> | |||||
| </xsd:element> | |||||
| </xsd:schema> | |||||
| <resheader name="resmimetype"> | |||||
| <value>text/microsoft-resx</value> | |||||
| </resheader> | |||||
| <resheader name="version"> | |||||
| <value>2.0</value> | |||||
| </resheader> | |||||
| <resheader name="reader"> | |||||
| <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| <resheader name="writer"> | |||||
| <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||||
| </resheader> | |||||
| </root> | |||||
| @ -1,124 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||||
| <PropertyGroup> | |||||
| <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||||
| <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||||
| <ProjectGuid>{CB51A020-8823-4D64-898D-CC1632A298DB}</ProjectGuid> | |||||
| <OutputType>WinExe</OutputType> | |||||
| <AppDesignerFolder>Properties</AppDesignerFolder> | |||||
| <RootNamespace>WeightClient</RootNamespace> | |||||
| <AssemblyName>WeightClient</AssemblyName> | |||||
| <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||||
| <FileAlignment>512</FileAlignment> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||||
| <PlatformTarget>AnyCPU</PlatformTarget> | |||||
| <DebugSymbols>true</DebugSymbols> | |||||
| <DebugType>full</DebugType> | |||||
| <Optimize>false</Optimize> | |||||
| <OutputPath>bin\Debug\</OutputPath> | |||||
| <DefineConstants>DEBUG;TRACE</DefineConstants> | |||||
| <ErrorReport>prompt</ErrorReport> | |||||
| <WarningLevel>4</WarningLevel> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||||
| <PlatformTarget>AnyCPU</PlatformTarget> | |||||
| <DebugType>pdbonly</DebugType> | |||||
| <Optimize>true</Optimize> | |||||
| <OutputPath>bin\Release\</OutputPath> | |||||
| <DefineConstants>TRACE</DefineConstants> | |||||
| <ErrorReport>prompt</ErrorReport> | |||||
| <WarningLevel>4</WarningLevel> | |||||
| </PropertyGroup> | |||||
| <ItemGroup> | |||||
| <Reference Include="Forks.EnterpriseServices, Version=3.1.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"> | |||||
| <SpecificVersion>False</SpecificVersion> | |||||
| <HintPath>..\..\..\..\BwpB3Project\tsref\Debug\Forks.EnterpriseServices.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="Forks.JsonRpc.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"> | |||||
| <SpecificVersion>False</SpecificVersion> | |||||
| <HintPath>..\..\..\..\BwpB3Project\tsref\Debug\Forks.JsonRpc.Client.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="Forks.Utils, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7254430f49d10aae, processorArchitecture=MSIL"> | |||||
| <SpecificVersion>False</SpecificVersion> | |||||
| <HintPath>..\..\..\..\BwpB3Project\tsref\Debug\Forks.Utils.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="PresentationCore" /> | |||||
| <Reference Include="PresentationFramework" /> | |||||
| <Reference Include="System" /> | |||||
| <Reference Include="System.Core" /> | |||||
| <Reference Include="System.Xaml" /> | |||||
| <Reference Include="System.Xml.Linq" /> | |||||
| <Reference Include="System.Data.DataSetExtensions" /> | |||||
| <Reference Include="Microsoft.CSharp" /> | |||||
| <Reference Include="System.Data" /> | |||||
| <Reference Include="System.Deployment" /> | |||||
| <Reference Include="System.Drawing" /> | |||||
| <Reference Include="System.Windows.Forms" /> | |||||
| <Reference Include="System.Xml" /> | |||||
| <Reference Include="WindowsBase" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <Compile Include="AppContext.cs" /> | |||||
| <Compile Include="Login.cs"> | |||||
| <SubType>Form</SubType> | |||||
| </Compile> | |||||
| <Compile Include="Login.Designer.cs"> | |||||
| <DependentUpon>Login.cs</DependentUpon> | |||||
| </Compile> | |||||
| <Compile Include="Program.cs" /> | |||||
| <Compile Include="Properties\AssemblyInfo.cs" /> | |||||
| <Compile Include="SettingForm.cs"> | |||||
| <SubType>Form</SubType> | |||||
| </Compile> | |||||
| <Compile Include="SettingForm.Designer.cs"> | |||||
| <DependentUpon>SettingForm.cs</DependentUpon> | |||||
| </Compile> | |||||
| <EmbeddedResource Include="Login.resx"> | |||||
| <DependentUpon>Login.cs</DependentUpon> | |||||
| </EmbeddedResource> | |||||
| <EmbeddedResource Include="Properties\Resources.resx"> | |||||
| <Generator>ResXFileCodeGenerator</Generator> | |||||
| <LastGenOutput>Resources.Designer.cs</LastGenOutput> | |||||
| <SubType>Designer</SubType> | |||||
| </EmbeddedResource> | |||||
| <Compile Include="Properties\Resources.Designer.cs"> | |||||
| <AutoGen>True</AutoGen> | |||||
| <DependentUpon>Resources.resx</DependentUpon> | |||||
| </Compile> | |||||
| <EmbeddedResource Include="SettingForm.resx"> | |||||
| <DependentUpon>SettingForm.cs</DependentUpon> | |||||
| </EmbeddedResource> | |||||
| <None Include="Properties\Settings.settings"> | |||||
| <Generator>SettingsSingleFileGenerator</Generator> | |||||
| <LastGenOutput>Settings.Designer.cs</LastGenOutput> | |||||
| </None> | |||||
| <Compile Include="Properties\Settings.Designer.cs"> | |||||
| <AutoGen>True</AutoGen> | |||||
| <DependentUpon>Settings.settings</DependentUpon> | |||||
| <DesignTimeSharedInput>True</DesignTimeSharedInput> | |||||
| </Compile> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <None Include="App.config" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <ProjectReference Include="..\BO\BO.csproj"> | |||||
| <Project>{8968f14a-c7c7-4751-96ce-b114fbfd65ef}</Project> | |||||
| <Name>BO</Name> | |||||
| </ProjectReference> | |||||
| <ProjectReference Include="..\BWP.WinFormControl\BWP.WinFormControl.csproj"> | |||||
| <Project>{a782b23e-be6d-4f51-b5cb-5cd259ba97cc}</Project> | |||||
| <Name>BWP.WinFormControl</Name> | |||||
| </ProjectReference> | |||||
| </ItemGroup> | |||||
| <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||||
| <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||||
| Other similar extension points exist, see Microsoft.Common.targets. | |||||
| <Target Name="BeforeBuild"> | |||||
| </Target> | |||||
| <Target Name="AfterBuild"> | |||||
| </Target> | |||||
| --> | |||||
| </Project> | |||||