¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <configuration> |
| | | <configSections> |
| | | <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System"> |
| | | <section name="DevExpress.LookAndFeel.Design.AppSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
| | | </sectionGroup> |
| | | </configSections> |
| | | <applicationSettings> |
| | | <DevExpress.LookAndFeel.Design.AppSettings> |
| | | <setting name="DPIAwarenessMode" serializeAs="String"> |
| | | <value>System</value> |
| | | </setting> |
| | | <setting name="RegisterBonusSkins" serializeAs="String"> |
| | | <value>True</value> |
| | | </setting> |
| | | </DevExpress.LookAndFeel.Design.AppSettings> |
| | | </applicationSettings> |
| | | </configuration> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <Project Sdk="Microsoft.NET.Sdk"> |
| | | |
| | | <PropertyGroup> |
| | | <OutputType>WinExe</OutputType> |
| | | <TargetFramework>net8.0-windows7.0</TargetFramework> |
| | | <UseWindowsForms>true</UseWindowsForms> |
| | | <Company>䏿µ·ä¹ç»´æµä½ç§ææéå
¬å¸</Company> |
| | | <ApplicationIcon>AppIcon.ico</ApplicationIcon> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <Compile Remove="MainWindow4Wen å¤ä»½\**" /> |
| | | <Compile Remove="MainWindow\æ°å»ºæä»¶å¤¹\**" /> |
| | | <Compile Remove="Resources\123\**" /> |
| | | <Compile Remove="Resources\MainIcon\**" /> |
| | | <EmbeddedResource Remove="MainWindow4Wen å¤ä»½\**" /> |
| | | <EmbeddedResource Remove="MainWindow\æ°å»ºæä»¶å¤¹\**" /> |
| | | <EmbeddedResource Remove="Resources\123\**" /> |
| | | <EmbeddedResource Remove="Resources\MainIcon\**" /> |
| | | <None Remove="MainWindow4Wen å¤ä»½\**" /> |
| | | <None Remove="MainWindow\æ°å»ºæä»¶å¤¹\**" /> |
| | | <None Remove="Resources\123\**" /> |
| | | <None Remove="Resources\MainIcon\**" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Compile Remove="MainRibbonCmdHelper.cs" /> |
| | | <Compile Remove="MainWindow\frmMainWindow.Designer - 坿¬.cs" /> |
| | | <Compile Remove="MainWindow\frmMainWindowAntdUI.cs" /> |
| | | <Compile Remove="MainWindow\frmMainWindowAntdUI.Designer.cs" /> |
| | | <Compile Remove="MainWindow\frmMainWindowRLT.cs" /> |
| | | <Compile Remove="MainWindow\frmMainWindowRLT.Designer.cs" /> |
| | | <Compile Remove="MainWindow\MainWindowOld.cs" /> |
| | | <Compile Remove="MainWindow\MainWindowOld.designer.cs" /> |
| | | <Compile Remove="Main\Form1.cs" /> |
| | | <Compile Remove="Main\Form1.Designer.cs" /> |
| | | <Compile Remove="RibbonTestForm.cs" /> |
| | | <Compile Remove="RibbonTestForm.Designer.cs" /> |
| | | <Compile Remove="RibbonTestForm_InitialRibbon.cs" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <EmbeddedResource Remove="MainWindow\frmMainWindowAntdUI.resx" /> |
| | | <EmbeddedResource Remove="MainWindow\frmMainWindowRLT.resx" /> |
| | | <EmbeddedResource Remove="MainWindow\MainWindowOld.en-US.resx" /> |
| | | <EmbeddedResource Remove="MainWindow\MainWindowOld.resx" /> |
| | | <EmbeddedResource Remove="Main\Form1.resx" /> |
| | | <EmbeddedResource Remove="RibbonTestForm.resx" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <None Remove="Resources\Eventech32.png" /> |
| | | <None Remove="Resources\logo - 坿¬.png" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Content Include="AppIcon.ico" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\..\Model\DPumpHydr.Model.Core\DPumpHydr.Model.Core.csproj" /> |
| | | <ProjectReference Include="..\..\WinFrmUI\DPumpHydr.WinFrmUI.Assets\DPumpHydr.WinFrmUI.Assets.csproj" /> |
| | | <ProjectReference Include="..\..\WinFrmUI\DPumpHydr.WinFrmUI.Core\DPumpHydr.WinFrmUI.Core.csproj" /> |
| | | <ProjectReference Include="..\..\WinFrmUI\DPumpHydr.WinFrmUI.Impeller\DPumpHydr.WinFrmUI.Impeller.csproj" /> |
| | | <ProjectReference Include="..\..\WinFrmUI\DPumpHydr.WinFrmUI.Ribbon\DPumpHydr.WinFrmUI.Ribbon.csproj" /> |
| | | <ProjectReference Include="..\..\WinFrmUI\DPumpHydr.WinFrmUI.Volute\DPumpHydr.WinFrmUI.Volute.csproj" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Compile Update="Properties\Resources.Designer.cs"> |
| | | <DesignTime>True</DesignTime> |
| | | <AutoGen>True</AutoGen> |
| | | <DependentUpon>Resources.resx</DependentUpon> |
| | | </Compile> |
| | | <Compile Update="Properties\Settings.Designer.cs"> |
| | | <DesignTimeSharedInput>True</DesignTimeSharedInput> |
| | | <AutoGen>True</AutoGen> |
| | | <DependentUpon>Settings.settings</DependentUpon> |
| | | </Compile> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <EmbeddedResource Update="Properties\Resources.resx"> |
| | | <Generator>ResXFileCodeGenerator</Generator> |
| | | <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
| | | </EmbeddedResource> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <None Update="Properties\Settings.settings"> |
| | | <Generator>SettingsSingleFileGenerator</Generator> |
| | | <LastGenOutput>Settings.Designer.cs</LastGenOutput> |
| | | </None> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup /> |
| | | <ItemGroup> |
| | | <Compile Update="MainWindow\BaseInfoDebugFrm.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Update="MainWindow\SectionBundleInfoDebug.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Update="MainWindow\SectionShapeInfo18Debug.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Update="MainWindow\SetOutflowPatasDebug.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Update="MainWindow\ThicknessPatasDebug.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | </ItemGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Xml; |
| | | |
| | | namespace DPumpHydr.DesktopMain |
| | | { |
| | | internal class MainRibbonCmdHelper |
| | | { |
| | | public void Read() |
| | | { |
| | | string filePath = @"c:\1.xml"; |
| | | System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument(); |
| | | xmlDoc.Load(filePath); |
| | | System.Xml.XmlElement rootNode = xmlDoc.DocumentElement;//æ ¹èç¹ |
| | | if (rootNode == null) |
| | | return; |
| | | var nodeVersionInfo = rootNode.SelectSingleNode("VersionInfo"); |
| | | if (nodeVersionInfo == null) |
| | | return; |
| | | if (nodeVersionInfo.InnerText == "V1") |
| | | { |
| | | Read_V1(rootNode); |
| | | } |
| | | } |
| | | |
| | | private static void Read_V1(System.Xml.XmlElement rootNode) |
| | | { |
| | | #region V1 |
| | | |
| | | #region ProductSetting |
| | | |
| | | var nodeProductSetting = rootNode.SelectSingleNode("RibbonForm") as XmlElement; |
| | | if (nodeProductSetting != null) |
| | | return; |
| | | |
| | | //foreach (var xmlNodeRibbonTab in nodeProductSetting.SelectNodes("RibbonTab")) |
| | | //{ |
| | | // XmlElement xmlElement = (XmlElement)xmlNodeRibbonTab;//å°èç¹è½¬æ¢ä¸ä¸ç±»å |
| | | // var atrr_tab_text = xmlElement.GetAttribute("Text"); |
| | | |
| | | //foreach (var xmlNodeRibbonTab in nodeProductSetting.SelectNodes("RibbonTab")) |
| | | //{ |
| | | // XmlElement xmlElement = (XmlElement)xmlNodeRibbonTab;//å°èç¹è½¬æ¢ä¸ä¸ç±»å |
| | | |
| | | //} |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | partial class BaseInfoDebugFrm |
| | | { |
| | | /// <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() |
| | | { |
| | | button1 = new System.Windows.Forms.Button(); |
| | | panel1 = new System.Windows.Forms.Panel(); |
| | | SuspendLayout(); |
| | | // |
| | | // button1 |
| | | // |
| | | button1.Location = new System.Drawing.Point(252, 12); |
| | | button1.Name = "button1"; |
| | | button1.Size = new System.Drawing.Size(96, 23); |
| | | button1.TabIndex = 0; |
| | | button1.Text = "è·åæ§ä»¶åæ°"; |
| | | button1.UseVisualStyleBackColor = true; |
| | | button1.Click += button1_Click; |
| | | // |
| | | // panel1 |
| | | // |
| | | panel1.Location = new System.Drawing.Point(22, 41); |
| | | panel1.Name = "panel1"; |
| | | panel1.Size = new System.Drawing.Size(326, 815); |
| | | panel1.TabIndex = 1; |
| | | // |
| | | // BaseInfoDebugFrm |
| | | // |
| | | AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
| | | AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | ClientSize = new System.Drawing.Size(357, 967); |
| | | Controls.Add(panel1); |
| | | Controls.Add(button1); |
| | | Name = "BaseInfoDebugFrm"; |
| | | Text = "BaseInfoDebugFrm"; |
| | | Load += BaseInfoDebugFrm_Load; |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Button button1; |
| | | private System.Windows.Forms.Panel panel1; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using DPumpHydr.WinFrmUI.Volute.ViewModel; |
| | | 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 DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | public partial class BaseInfoDebugFrm : Form |
| | | { |
| | | public BaseInfoDebugFrm() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | DPumpHydr.WinFrmUI.Volute.ctrlHdrBaseInfo ctrl = null; |
| | | private void BaseInfoDebugFrm_Load(object sender, EventArgs e) |
| | | { |
| | | ctrl = new DPumpHydr.WinFrmUI.Volute.ctrlHdrBaseInfo(); |
| | | ctrl.Name ="ctrlHdrBaseInfo"; |
| | | ctrl.Dock = DockStyle.Fill; |
| | | this.panel1.Controls.Add(ctrl); |
| | | |
| | | //ä¾å1 |
| | | #region å¦ææ²¡æåå§ä¼ å
¥åæ°,æ§ä»¶è¿è¡åå§ååæ° |
| | | ctrl.InitialParas(); |
| | | #endregion |
| | | |
| | | //ä¾å2 |
| | | #region 妿éè¦ä¼ å
¥åºæ¬åæ° |
| | | ////åºæ¬åæ°ç±» |
| | | //DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo() |
| | | //{ |
| | | // ShapeType = 0, |
| | | // Q = 148, |
| | | // H = 90, |
| | | // n = 2900, |
| | | // D2 = 278, |
| | | // B2 = 15, |
| | | // IsSXB = false, |
| | | //}; |
| | | ////计ç®è½¬éæ¯ |
| | | //hdrBase.CalcNs(); |
| | | ////åºååæ° |
| | | //DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo() |
| | | //{ |
| | | // D3 = 295, |
| | | // B3 = 30, |
| | | // FAI0 = 32 |
| | | //}; |
| | | ////ä¼ å
¥æ§ä»¶æ¾ç¤ºåæ° |
| | | //ctrl.SetBindingData(geomBase); |
| | | //ctrl.SetBindingData(hdrBase); |
| | | #endregion |
| | | |
| | | //ä¾å3 |
| | | #region å¦æåªæåºæ¬åæ°ï¼æ²¡æåºååæ° |
| | | ////åºæ¬åæ°ç±» |
| | | //DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo() |
| | | //{ |
| | | // ShapeType = 0, |
| | | // Q = 148, |
| | | // H = 90, |
| | | // n = 2900, |
| | | // D2 = 278, |
| | | // B2 = 15, |
| | | // IsSXB = false, |
| | | //}; |
| | | //DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo(); |
| | | ////éè¿åºæ¬åæ°å¯¹åºååæ°è¿è¡åå§å |
| | | //geomBase.Initial(hdrBase); |
| | | ////ä¼ å
¥æ§ä»¶æ¾ç¤ºåæ° |
| | | //ctrl.SetBindingData(geomBase); |
| | | //ctrl.SetBindingData(hdrBase); |
| | | #endregion |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | //åºæ¬åæ°ç±» |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo(); |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo(); |
| | | //è·åæ§ä»¶æ¾ç¤ºæ°æ®åæ° |
| | | string error = ctrl.GetBindingData(out hdrBase, out geomBase); |
| | | if(error !=null) |
| | | { |
| | | MessageBox.Show(error); |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æåè·ååæ°\r\næµéï¼"+hdrBase.Q |
| | | +"\r\næ¬ç¨ï¼" + hdrBase.H+ |
| | | "\r\n转éï¼"+hdrBase.n+ |
| | | "\r\nå¶è½®å®½åº¦ï¼" + hdrBase.B2+ |
| | | "\r\nå¶è½®å¤å¾ï¼" + hdrBase.D2+ |
| | | "\r\næ¯å¦å叿³µï¼" + hdrBase.IsSXB+ |
| | | "\r\næ¯è½¬é:" + hdrBase.n + |
| | | "\r\nåºåç´å¾ï¼" + geomBase.D3 + |
| | | "\r\nåºå宽度ï¼" + geomBase.B3 + |
| | | "\r\nå²èè§ï¼" + geomBase.FAI0); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | partial class SectionBundleInfoDebug |
| | | { |
| | | /// <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() |
| | | { |
| | | panel1 = new System.Windows.Forms.Panel(); |
| | | button1 = new System.Windows.Forms.Button(); |
| | | SuspendLayout(); |
| | | // |
| | | // panel1 |
| | | // |
| | | panel1.Location = new System.Drawing.Point(12, 35); |
| | | panel1.Name = "panel1"; |
| | | panel1.Size = new System.Drawing.Size(335, 815); |
| | | panel1.TabIndex = 0; |
| | | // |
| | | // button1 |
| | | // |
| | | button1.Location = new System.Drawing.Point(217, 9); |
| | | button1.Name = "button1"; |
| | | button1.Size = new System.Drawing.Size(113, 23); |
| | | button1.TabIndex = 1; |
| | | button1.Text = "è·åæ§ä»¶åæ°"; |
| | | button1.UseVisualStyleBackColor = true; |
| | | button1.Click += button1_Click; |
| | | // |
| | | // SectionBundleInfoDebug |
| | | // |
| | | AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
| | | AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | ClientSize = new System.Drawing.Size(358, 880); |
| | | Controls.Add(button1); |
| | | Controls.Add(panel1); |
| | | Name = "SectionBundleInfoDebug"; |
| | | Text = "SectionBundleInfoDebug"; |
| | | Load += SectionBundleInfoDebug_Load; |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Panel panel1; |
| | | private System.Windows.Forms.Button button1; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using DPumpHydr.WinFrmUI.Volute.ViewModel; |
| | | 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 DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | public partial class SectionBundleInfoDebug : Form |
| | | { |
| | | public SectionBundleInfoDebug() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | DPumpHydr.WinFrmUI.Volute.ctrlSectionBundleInfo ctrl = null; |
| | | |
| | | private void SectionBundleInfoDebug_Load(object sender, EventArgs e) |
| | | { |
| | | ctrl = new DPumpHydr.WinFrmUI.Volute.ctrlSectionBundleInfo(); |
| | | ctrl.Name ="ctrlSectionBundleInfo"; |
| | | ctrl.Dock = DockStyle.Fill; |
| | | this.panel1.Controls.Add(ctrl); |
| | | //åºæ¬åæ°ç±» |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo() |
| | | { |
| | | ShapeType = 0, |
| | | Q = 148, |
| | | H = 90, |
| | | n = 2900, |
| | | D2 = 278, |
| | | B2 = 15, |
| | | IsSXB = false, |
| | | }; |
| | | //计ç®è½¬éæ¯ |
| | | hdrBase.CalcNs(); |
| | | //åºååæ° |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo() |
| | | { |
| | | D3 = 295, |
| | | B3 = 30, |
| | | FAI0 = 32 |
| | | }; |
| | | |
| | | #region æ ¹æ®åºæ¬åæ°ãåºååæ° 对1-8æé¢åæ°è¿è¡åå§å æè
ä¼ å
¥æ´æ°åçåºæ¬åæ°ãåºå忰坹æé¢åæ°è¿è¡æ´æ° |
| | | //æ ¹æ®åºæ¬åæ°ãåºååæ°ä¼ å°æ§ä»¶ä¸å¯¹æé¢åæ°è¿è¡è®¡ç®å¹¶å±ç¤º |
| | | //妿æ¯ä»åºæ¬åæ°åè¿å°è¯¥æ§ä»¶ é£ä¹ä¼æ ¹æ®ææä¾çåºæ¬åæ°ååºååæ°å»è¿è¡åå§å计ç®/æ´æ° |
| | | ////妿æ¯ä»åºå£æè
å ååéå°è¯¥æ§ä»¶ é£ä¹æ§ä»¶ä¸ä¼è¿è¡ä»»ä½æä½ |
| | | //妿éè¦è¦çæé¢åæ° true |
| | | ////妿ä¸éè¦è¦çæé¢åæ° false |
| | | ctrl.ShowPage(hdrBase, geomBase, DPumpHydr.ViewModel.eWizardStepDiretion.åè¿, true); |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | //1-8æé¢åæ°ç±» |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.SectionBundleInfo sectionBundle = new WinFrmUI.Volute.ViewModel.SectionBundleInfo(); |
| | | string error = ""; |
| | | sectionBundle = ctrl.GetBindingData(out error); |
| | | if (!string.IsNullOrEmpty(error)) |
| | | { |
| | | MessageBox.Show(error); |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æåè·ååæ°\r\né度系æ°ï¼"+sectionBundle.K3 |
| | | +"\r\n平念éï¼" + sectionBundle.V3+ |
| | | "\r\næé¢ç±»åï¼"+sectionBundle.ShapeType.ToString()+ |
| | | "\r\nå¤å´çåå¾ ï¼" + sectionBundle.R_out+ |
| | | "\r\næé¢1:" +" é«åº¦:" +sectionBundle.H[1]+" å·¦åè§åå¾:" +sectionBundle.R_Left[1]+" å³åè§åå¾:" +sectionBundle.R_Right[1]+" é¢ç§¯:" +sectionBundle.Area[1]+" å·¦gama:" +sectionBundle.GaMa_Left[1]+" å³gama:" +sectionBundle.GaMa_Right[1]+ |
| | | "\r\næé¢2:" +" é«åº¦:" +sectionBundle.H[2]+" å·¦åè§åå¾:" +sectionBundle.R_Left[2]+" å³åè§åå¾:" +sectionBundle.R_Right[2]+" é¢ç§¯:" +sectionBundle.Area[2]+" å·¦gama:" +sectionBundle.GaMa_Left[2]+" å³gama:" +sectionBundle.GaMa_Right[2]+ |
| | | "\r\næé¢3:" +" é«åº¦:" +sectionBundle.H[3]+" å·¦åè§åå¾:" +sectionBundle.R_Left[3]+" å³åè§åå¾:" +sectionBundle.R_Right[3]+" é¢ç§¯:" +sectionBundle.Area[3]+" å·¦gama:" +sectionBundle.GaMa_Left[3]+" å³gama:" +sectionBundle.GaMa_Right[3]+ |
| | | "\r\næé¢4:" +" é«åº¦:" +sectionBundle.H[4]+" å·¦åè§åå¾:" +sectionBundle.R_Left[4]+" å³åè§åå¾:" +sectionBundle.R_Right[4]+" é¢ç§¯:" +sectionBundle.Area[4]+" å·¦gama:" +sectionBundle.GaMa_Left[4]+" å³gama:" +sectionBundle.GaMa_Right[4]+ |
| | | "\r\næé¢5:" +" é«åº¦:" +sectionBundle.H[5]+" å·¦åè§åå¾:" +sectionBundle.R_Left[5]+" å³åè§åå¾:" +sectionBundle.R_Right[5]+" é¢ç§¯:" +sectionBundle.Area[5]+" å·¦gama:" +sectionBundle.GaMa_Left[5]+" å³gama:" +sectionBundle.GaMa_Right[5]+ |
| | | "\r\næé¢6:" +" é«åº¦:" +sectionBundle.H[6]+" å·¦åè§åå¾:" +sectionBundle.R_Left[6]+" å³åè§åå¾:" +sectionBundle.R_Right[6]+" é¢ç§¯:" +sectionBundle.Area[6]+" å·¦gama:" +sectionBundle.GaMa_Left[6]+" å³gama:" +sectionBundle.GaMa_Right[6]+ |
| | | "\r\næé¢7:" +" é«åº¦:" +sectionBundle.H[7]+" å·¦åè§åå¾:" +sectionBundle.R_Left[7]+" å³åè§åå¾:" +sectionBundle.R_Right[7]+" é¢ç§¯:" +sectionBundle.Area[7]+" å·¦gama:" +sectionBundle.GaMa_Left[7]+" å³gama:" +sectionBundle.GaMa_Right[7]+ |
| | | "\r\næé¢8:" +" é«åº¦:" +sectionBundle.H[8]+" å·¦åè§åå¾:" +sectionBundle.R_Left[8]+" å³åè§åå¾:" +sectionBundle.R_Right[8]+" é¢ç§¯:" +sectionBundle.Area[8]+" å·¦gama:" +sectionBundle.GaMa_Left[8]+" å³gama:" +sectionBundle.GaMa_Right[8] |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | partial class SectionShapeInfo18Debug |
| | | { |
| | | /// <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() |
| | | { |
| | | panel1 = new System.Windows.Forms.Panel(); |
| | | button1 = new System.Windows.Forms.Button(); |
| | | SuspendLayout(); |
| | | // |
| | | // panel1 |
| | | // |
| | | panel1.Location = new System.Drawing.Point(12, 32); |
| | | panel1.Name = "panel1"; |
| | | panel1.Size = new System.Drawing.Size(335, 808); |
| | | panel1.TabIndex = 0; |
| | | // |
| | | // button1 |
| | | // |
| | | button1.Location = new System.Drawing.Point(206, 3); |
| | | button1.Name = "button1"; |
| | | button1.Size = new System.Drawing.Size(140, 23); |
| | | button1.TabIndex = 1; |
| | | button1.Text = "è·åæ§ä»¶åæ°"; |
| | | button1.UseVisualStyleBackColor = true; |
| | | button1.Click += button1_Click; |
| | | // |
| | | // SectionShapeInfo18Debug |
| | | // |
| | | AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
| | | AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | ClientSize = new System.Drawing.Size(358, 865); |
| | | Controls.Add(button1); |
| | | Controls.Add(panel1); |
| | | Name = "SectionShapeInfo18Debug"; |
| | | Text = "SectionShapeInfo18Debug"; |
| | | Load += SectionShapeInfo18Debug_Load; |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Panel panel1; |
| | | private System.Windows.Forms.Button button1; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | public partial class SectionShapeInfo18Debug : Form |
| | | { |
| | | public SectionShapeInfo18Debug() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.SectionBundleInfo sectionBundle = null; |
| | | DPumpHydr.WinFrmUI.Volute.ctrlSectionShapeInfo18 ctrl = null; |
| | | private void SectionShapeInfo18Debug_Load(object sender, EventArgs e) |
| | | { |
| | | ctrl = new DPumpHydr.WinFrmUI.Volute.ctrlSectionShapeInfo18(); |
| | | ctrl.Name ="ctrlSectionShapeInfo18"; |
| | | ctrl.Dock = DockStyle.Fill; |
| | | this.panel1.Controls.Add(ctrl); |
| | | |
| | | //åºæ¬åæ°ç±» |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo() |
| | | { |
| | | ShapeType = 0, |
| | | Q = 148, |
| | | H = 90, |
| | | n = 2900, |
| | | D2 = 278, |
| | | B2 = 15, |
| | | IsSXB = false, |
| | | }; |
| | | //计ç®è½¬éæ¯ |
| | | hdrBase.CalcNs(); |
| | | //åºååæ° |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo() |
| | | { |
| | | D3 = 295, |
| | | B3 = 30, |
| | | FAI0 = 32 |
| | | }; |
| | | //åå§åæææé¢åæ° |
| | | sectionBundle = new WinFrmUI.Volute.ViewModel.SectionBundleInfo(); |
| | | sectionBundle.ResetAllParas(hdrBase, geomBase); |
| | | |
| | | |
| | | #region ä¼ å
¥ |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.SectionShapePara sectionShapePara = new DPumpHydr.WinFrmUI.Volute.ViewModel.SectionShapePara(); |
| | | //仿ææé¢åæ°ä¸è·åå°å个æé¢çåæ° ä¼ å
¥ç¬¬å æé¢ |
| | | sectionShapePara = sectionBundle.ToSectionShapePara(1); |
| | | //ä¼ å
¥æ§ä»¶å¹¶å±ç¤º |
| | | ctrl.SetBindingData(sectionShapePara); |
| | | #endregion |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.SectionShapePara sectionShapePara = new WinFrmUI.Volute.ViewModel.SectionShapePara(); |
| | | string error = ""; |
| | | sectionShapePara = ctrl.GetBindingData(out error); |
| | | //æ ¹æ®æ´æ°åçæé¢åæ° æ´æ°æ»æé¢åæ°ä¸å¯¹åºæé¢çåæ° |
| | | sectionBundle.FromSectionShapePara(sectionShapePara); |
| | | if (!string.IsNullOrEmpty(error)) |
| | | { |
| | | MessageBox.Show(error); |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æåè·åå¹¶æ´æ°æé¢"+sectionShapePara.Index +"åæ°\r\né«åº¦:" +sectionShapePara.H+" å·¦åè§åå¾:" +sectionShapePara.R_Left+" å³åè§åå¾:" +sectionShapePara.R_Right+" é¢ç§¯:" +sectionShapePara.SectionArea+" å·¦gama:" +sectionShapePara.Gama_Left+" å³gama:" +sectionShapePara.Gama_Right); |
| | | MessageBox.Show("æåæ´æ°åçæ»æé¢åæ°\r\né度系æ°ï¼"+sectionBundle.K3 |
| | | +"\r\n平念éï¼" + sectionBundle.V3+ |
| | | "\r\næé¢ç±»åï¼"+sectionBundle.ShapeType.ToString()+ |
| | | "\r\nå¤å´çåå¾ ï¼" + sectionBundle.R_out+ |
| | | "\r\næé¢1:" +" é«åº¦:" +sectionBundle.H[1]+" å·¦åè§åå¾:" +sectionBundle.R_Left[1]+" å³åè§åå¾:" +sectionBundle.R_Right[1]+" é¢ç§¯:" +sectionBundle.Area[1]+" å·¦gama:" +sectionBundle.GaMa_Left[1]+" å³gama:" +sectionBundle.GaMa_Right[1]+ |
| | | "\r\næé¢2:" +" é«åº¦:" +sectionBundle.H[2]+" å·¦åè§åå¾:" +sectionBundle.R_Left[2]+" å³åè§åå¾:" +sectionBundle.R_Right[2]+" é¢ç§¯:" +sectionBundle.Area[2]+" å·¦gama:" +sectionBundle.GaMa_Left[2]+" å³gama:" +sectionBundle.GaMa_Right[2]+ |
| | | "\r\næé¢3:" +" é«åº¦:" +sectionBundle.H[3]+" å·¦åè§åå¾:" +sectionBundle.R_Left[3]+" å³åè§åå¾:" +sectionBundle.R_Right[3]+" é¢ç§¯:" +sectionBundle.Area[3]+" å·¦gama:" +sectionBundle.GaMa_Left[3]+" å³gama:" +sectionBundle.GaMa_Right[3]+ |
| | | "\r\næé¢4:" +" é«åº¦:" +sectionBundle.H[4]+" å·¦åè§åå¾:" +sectionBundle.R_Left[4]+" å³åè§åå¾:" +sectionBundle.R_Right[4]+" é¢ç§¯:" +sectionBundle.Area[4]+" å·¦gama:" +sectionBundle.GaMa_Left[4]+" å³gama:" +sectionBundle.GaMa_Right[4]+ |
| | | "\r\næé¢5:" +" é«åº¦:" +sectionBundle.H[5]+" å·¦åè§åå¾:" +sectionBundle.R_Left[5]+" å³åè§åå¾:" +sectionBundle.R_Right[5]+" é¢ç§¯:" +sectionBundle.Area[5]+" å·¦gama:" +sectionBundle.GaMa_Left[5]+" å³gama:" +sectionBundle.GaMa_Right[5]+ |
| | | "\r\næé¢6:" +" é«åº¦:" +sectionBundle.H[6]+" å·¦åè§åå¾:" +sectionBundle.R_Left[6]+" å³åè§åå¾:" +sectionBundle.R_Right[6]+" é¢ç§¯:" +sectionBundle.Area[6]+" å·¦gama:" +sectionBundle.GaMa_Left[6]+" å³gama:" +sectionBundle.GaMa_Right[6]+ |
| | | "\r\næé¢7:" +" é«åº¦:" +sectionBundle.H[7]+" å·¦åè§åå¾:" +sectionBundle.R_Left[7]+" å³åè§åå¾:" +sectionBundle.R_Right[7]+" é¢ç§¯:" +sectionBundle.Area[7]+" å·¦gama:" +sectionBundle.GaMa_Left[7]+" å³gama:" +sectionBundle.GaMa_Right[7]+ |
| | | "\r\næé¢8:" +" é«åº¦:" +sectionBundle.H[8]+" å·¦åè§åå¾:" +sectionBundle.R_Left[8]+" å³åè§åå¾:" +sectionBundle.R_Right[8]+" é¢ç§¯:" +sectionBundle.Area[8]+" å·¦gama:" +sectionBundle.GaMa_Left[8]+" å³gama:" +sectionBundle.GaMa_Right[8] |
| | | ); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | partial class SetOutflowPatasDebug |
| | | { |
| | | /// <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() |
| | | { |
| | | panel1 = new System.Windows.Forms.Panel(); |
| | | button1 = new System.Windows.Forms.Button(); |
| | | SuspendLayout(); |
| | | // |
| | | // panel1 |
| | | // |
| | | panel1.Location = new System.Drawing.Point(12, 60); |
| | | panel1.Name = "panel1"; |
| | | panel1.Size = new System.Drawing.Size(335, 815); |
| | | panel1.TabIndex = 0; |
| | | // |
| | | // button1 |
| | | // |
| | | button1.Location = new System.Drawing.Point(239, 25); |
| | | button1.Name = "button1"; |
| | | button1.Size = new System.Drawing.Size(98, 23); |
| | | button1.TabIndex = 1; |
| | | button1.Text = "è·åæ§ä»¶åæ°"; |
| | | button1.UseVisualStyleBackColor = true; |
| | | button1.Click += button1_Click; |
| | | // |
| | | // SetOutflowPatasDebug |
| | | // |
| | | AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
| | | AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | ClientSize = new System.Drawing.Size(358, 970); |
| | | Controls.Add(button1); |
| | | Controls.Add(panel1); |
| | | Name = "SetOutflowPatasDebug"; |
| | | Text = "SetOutflowPatasDebug"; |
| | | Load += SetOutflowPatasDebug_Load; |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Panel panel1; |
| | | private System.Windows.Forms.Button button1; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | public partial class SetOutflowPatasDebug : Form |
| | | { |
| | | public SetOutflowPatasDebug() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | DPumpHydr.WinFrmUI.Volute.ctrlSetOutflowParas ctrl = null; |
| | | |
| | | private void SetOutflowPatasDebug_Load(object sender, EventArgs e) |
| | | { |
| | | ctrl = new DPumpHydr.WinFrmUI.Volute.ctrlSetOutflowParas(); |
| | | ctrl.Name ="ctrlSetOutflowParas"; |
| | | ctrl.Dock = DockStyle.Fill; |
| | | this.panel1.Controls.Add(ctrl); |
| | | |
| | | //åºæ¬åæ°ç±» |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo() |
| | | { |
| | | ShapeType = 0, |
| | | Q = 148, |
| | | H = 90, |
| | | n = 2900, |
| | | D2 = 278, |
| | | B2 = 15, |
| | | IsSXB = false, |
| | | }; |
| | | //计ç®è½¬éæ¯ |
| | | hdrBase.CalcNs(); |
| | | //åºååæ° |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo() |
| | | { |
| | | D3 = 295, |
| | | B3 = 30, |
| | | FAI0 = 32 |
| | | }; |
| | | //åå§åæææé¢åæ° |
| | | WinFrmUI.Volute.ViewModel.SectionBundleInfo sectionBundle = new WinFrmUI.Volute.ViewModel.SectionBundleInfo(); |
| | | sectionBundle.ResetAllParas(hdrBase, geomBase); |
| | | |
| | | #region åå§ååºå£åæ° |
| | | //åºå£åæ° |
| | | WinFrmUI.Volute.ViewModel.OutflowParas outflowParas = null; |
| | | //è¿ä¸ªåæ°æ¯æµè¯æ¶ä¸çæ2d3d模åï¼æè
éè¿XML导å
¥æ¶ä½¿ç¨ |
| | | ctrl.Isxml = true; |
| | | ctrl.InitialParas(hdrBase, geomBase, sectionBundle, outflowParas); |
| | | #endregion |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | WinFrmUI.Volute.ViewModel.OutflowParas outflowParas = ctrl.GetBindingData(out string error); |
| | | if (!string.IsNullOrEmpty(error) ) |
| | | { |
| | | MessageBox.Show(error); |
| | | } |
| | | else |
| | | { |
| | | if(outflowParas.LinkStyle == WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.æ²çº¿) |
| | | MessageBox.Show("æåè·ååºå£åæ°\r\n"+"è¿æ¥æ¹å¼ï¼"+ outflowParas.LinkStyle.ToString()+ |
| | | "\r\nåºå£ç±»åï¼"+ outflowParas.ShapeStyle.ToString()+ |
| | | "\r\nåºå£ç´å¾ï¼" + outflowParas.Dia + |
| | | "\r\nåºå£ä½ç½®åç§»/ä¸å¿è·ç¦»ï¼" + outflowParas.Offset + |
| | | "\r\nåºå£é«åº¦/é¿åº¦ï¼" + outflowParas.Heigh + |
| | | "\r\nå²èåå¾ï¼" + outflowParas.Septalradius+ |
| | | "\r\nåºå£ä¸æ²çº¿/åå¼§ä¹é´çé«åº¦å·¦ä¾§" + outflowParas.H1 + |
| | | "\r\nåºå£ä¸æ²çº¿/åå¼§ä¹é´çé«åº¦å³ä¾§" + outflowParas.H2 + |
| | | "\r\nå线缩æ¾éå³ä¸ï¼" + outflowParas.Tangent_Top_Right + |
| | | "\r\nå线缩æ¾éå³ä¸ï¼" + outflowParas.Tangent_Btm_Right + |
| | | "\r\nå线缩æ¾éå·¦ä¸ï¼" + outflowParas.Tangent_Top_Left+ |
| | | "\r\nå线缩æ¾éå·¦ä¸ï¼" + outflowParas.Tangent_Btm_Left |
| | | ); |
| | | if (outflowParas.LinkStyle == WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.ç´çº¿åå¼§) |
| | | MessageBox.Show("æåè·ååºå£åæ°\r\n"+"è¿æ¥æ¹å¼ï¼"+ outflowParas.LinkStyle.ToString()+ |
| | | "\r\nåºå£ç±»åï¼"+ outflowParas.ShapeStyle.ToString()+ |
| | | "\r\nåºå£ç´å¾ï¼" + outflowParas.Dia + |
| | | "\r\nåºå£ä½ç½®åç§»/ä¸å¿è·ç¦»ï¼" + outflowParas.Offset + |
| | | "\r\nåºå£é«åº¦/é¿åº¦ï¼" + outflowParas.Heigh + |
| | | "\r\nå²èåå¾ï¼" + outflowParas.Septalradius+ |
| | | "\r\nåºå£ä¸æ²çº¿/åå¼§ä¹é´çé«åº¦å·¦ä¾§" + outflowParas.H1 + |
| | | "\r\nåºå£ä¸æ²çº¿/åå¼§ä¹é´çé«åº¦å³ä¾§" + outflowParas.H2 + |
| | | "\r\n左侧åå¼§åå¾ï¼" + outflowParas.R1 + |
| | | "\r\nå³ä¾§åå¼§åå¾ï¼" + outflowParas.R2 |
| | | ); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | partial class ThicknessPatasDebug |
| | | { |
| | | /// <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() |
| | | { |
| | | panel1 = new System.Windows.Forms.Panel(); |
| | | button1 = new System.Windows.Forms.Button(); |
| | | SuspendLayout(); |
| | | // |
| | | // panel1 |
| | | // |
| | | panel1.Location = new System.Drawing.Point(22, 43); |
| | | panel1.Name = "panel1"; |
| | | panel1.Size = new System.Drawing.Size(335, 808); |
| | | panel1.TabIndex = 0; |
| | | // |
| | | // button1 |
| | | // |
| | | button1.Location = new System.Drawing.Point(231, 14); |
| | | button1.Name = "button1"; |
| | | button1.Size = new System.Drawing.Size(126, 23); |
| | | button1.TabIndex = 1; |
| | | button1.Text = "è·åæ§ä»¶åæ°"; |
| | | button1.UseVisualStyleBackColor = true; |
| | | button1.Click += button1_Click; |
| | | // |
| | | // ThicknessPatasDebug |
| | | // |
| | | AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); |
| | | AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | ClientSize = new System.Drawing.Size(379, 881); |
| | | Controls.Add(button1); |
| | | Controls.Add(panel1); |
| | | Name = "ThicknessPatasDebug"; |
| | | Text = "ThicknessPatas"; |
| | | Load += ThicknessPatasDebug_Load; |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Panel panel1; |
| | | private System.Windows.Forms.Button button1; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 DPumpHydr.DesktopDebug.MainWindow |
| | | { |
| | | public partial class ThicknessPatasDebug : Form |
| | | { |
| | | public ThicknessPatasDebug() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | DPumpHydr.WinFrmUI.Volute.ctrlThicknessParas ctrl = null; |
| | | |
| | | private void ThicknessPatasDebug_Load(object sender, EventArgs e) |
| | | { |
| | | ctrl = new DPumpHydr.WinFrmUI.Volute.ctrlThicknessParas(); |
| | | ctrl.Name ="ctrlThicknessParas"; |
| | | ctrl.Dock = DockStyle.Fill; |
| | | this.panel1.Controls.Add(ctrl); |
| | | //åºæ¬åæ°ç±» |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo hdrBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.HdrBaseInfo() |
| | | { |
| | | ShapeType = 0, |
| | | Q = 148, |
| | | H = 90, |
| | | n = 2900, |
| | | D2 = 278, |
| | | B2 = 15, |
| | | IsSXB = false, |
| | | }; |
| | | //计ç®è½¬éæ¯ |
| | | hdrBase.CalcNs(); |
| | | //åºååæ° |
| | | DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo geomBase = new DPumpHydr.WinFrmUI.Volute.ViewModel.GeomBaseInfo() |
| | | { |
| | | D3 = 295, |
| | | B3 = 30, |
| | | FAI0 = 32 |
| | | }; |
| | | WinFrmUI.Volute.ViewModel.OutflowParas outflowParas = new WinFrmUI.Volute.ViewModel.OutflowParas() |
| | | { |
| | | ShapeStyle = 0, |
| | | LinkStyle = 0, |
| | | Offset = 200, |
| | | Heigh = 200, |
| | | Dia = 200, |
| | | Tangent_Top_Right = 1, |
| | | Tangent_Btm_Right = 1, |
| | | Tangent_Top_Left = 1, |
| | | Tangent_Btm_Left = 1, |
| | | H1 = 5, |
| | | H2 = 5, |
| | | R1 = 0, |
| | | R2 = 0, |
| | | Septalradius = 3 |
| | | }; |
| | | |
| | | |
| | | //壳ä½å度 |
| | | double bodyThickness = 10; |
| | | ctrl.InitialParas(hdrBase, geomBase, outflowParas, bodyThickness); |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | var bodyThickness = ctrl.GetBindingData(out string error); |
| | | if(!string.IsNullOrEmpty(error)) |
| | | { |
| | | MessageBox.Show(error); |
| | | } |
| | | else |
| | | { |
| | | MessageBox.Show("æåè·åæ§ä»¶åæ°\r\n壳ä½å度ï¼"+bodyThickness); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Windows.Forms; |
| | | using DPumpHydr.DesktopMain; |
| | | |
| | | namespace DPumpHydr.Client |
| | | { |
| | | internal static class Program |
| | | { |
| | | /// <summary> |
| | | /// The main entry point for the application. |
| | | /// </summary> |
| | | [STAThread] |
| | | static void Main() |
| | | { |
| | | Application.EnableVisualStyles(); |
| | | Application.SetCompatibleTextRenderingDefault(false); |
| | | |
| | | |
| | | //åºæ¬åæ° |
| | | //Application.Run(new DPumpHydr.DesktopDebug.MainWindow.BaseInfoDebugFrm()); |
| | | //1-8æé¢ |
| | | //Application.Run(new DPumpHydr.DesktopDebug.MainWindow.SectionBundleInfoDebug()); |
| | | //å个æé¢ |
| | | //Application.Run(new DPumpHydr.DesktopDebug.MainWindow.SectionShapeInfo18Debug()); |
| | | //åºå£ |
| | | //Application.Run(new DPumpHydr.DesktopDebug.MainWindow.SetOutflowPatasDebug()); |
| | | //å å |
| | | Application.Run(new DPumpHydr.DesktopDebug.MainWindow.ThicknessPatasDebug()); |
| | | |
| | | //Application.Run(new DPumpHydr.WinFrmUI.Volute.MainDialog()); |
| | | |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace DPumpHydr.DesktopMain.Properties { |
| | | using System; |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸ªå¼ºç±»åçèµæºç±»ï¼ç¨äºæ¥æ¾æ¬å°åçå符串çã |
| | | /// </summary> |
| | | // æ¤ç±»æ¯ç± StronglyTypedResourceBuilder |
| | | // ç±»éè¿ç±»ä¼¼äº ResGen æ Visual Studio çå·¥å
·èªå¨çæçã |
| | | // è¥è¦æ·»å æç§»é¤æåï¼è¯·ç¼è¾ .ResX æä»¶ï¼ç¶åéæ°è¿è¡ ResGen |
| | | // (以 /str ä½ä¸ºå½ä»¤é项)ï¼æéæ°çæ VS 项ç®ã |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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 (object.ReferenceEquals(resourceMan, null)) { |
| | | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DPumpHydr.DesktopMain.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; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap AppIcon256 { |
| | | get { |
| | | object obj = ResourceManager.GetObject("AppIcon256", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap Book { |
| | | get { |
| | | object obj = ResourceManager.GetObject("Book", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap logo { |
| | | get { |
| | | object obj = ResourceManager.GetObject("logo", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap Search { |
| | | get { |
| | | object obj = ResourceManager.GetObject("Search", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap setting { |
| | | get { |
| | | object obj = ResourceManager.GetObject("setting", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap user { |
| | | get { |
| | | object obj = ResourceManager.GetObject("user", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap woke { |
| | | get { |
| | | object obj = ResourceManager.GetObject("woke", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾ System.Drawing.Bitmap ç±»åçæ¬å°åèµæºã |
| | | /// </summary> |
| | | internal static System.Drawing.Bitmap yelun { |
| | | get { |
| | | object obj = ResourceManager.GetObject("yelun", resourceCulture); |
| | | return ((System.Drawing.Bitmap)(obj)); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| | | <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| | | <data name="user" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\user.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="AppIcon256" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\AppIcon256.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="Search" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\MainIcon\Search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="yelun" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\yelun.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="Book" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\MainIcon\Book.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="setting" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | <data name="woke" type="System.Resources.ResXFileRef, System.Windows.Forms"> |
| | | <value>..\Resources\woke.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> |
| | | </data> |
| | | </root> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace DPumpHydr.ClientMain.Properties { |
| | | |
| | | |
| | | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.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; |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| | |
| | | EndProject |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DPumpHydr.WinFrmUI.RLT", "WinFrmUI\DPumpHydr.WinFrmUI.RLT\DPumpHydr.WinFrmUI.RLT.csproj", "{0DB92627-4C3F-4737-AFB3-4D1509C1E547}" |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DPumpHydr.DesktopDebug", "Client\DesktopDebug\DPumpHydr.DesktopDebug.csproj", "{91D10526-3F0D-C506-2E6B-3ACE88FB44A9}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | | Debug|Any CPU = Debug|Any CPU |
| | |
| | | {0DB92627-4C3F-4737-AFB3-4D1509C1E547}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {0DB92627-4C3F-4737-AFB3-4D1509C1E547}.Release|x64.ActiveCfg = Release|Any CPU |
| | | {0DB92627-4C3F-4737-AFB3-4D1509C1E547}.Release|x64.Build.0 = Release|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|x64.ActiveCfg = Debug|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Debug|x64.Build.0 = Debug|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|x64.ActiveCfg = Release|Any CPU |
| | | {91D10526-3F0D-C506-2E6B-3ACE88FB44A9}.Release|x64.Build.0 = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(SolutionProperties) = preSolution |
| | | HideSolutionNode = FALSE |
| | |
| | | _ctrlSectionBundleInfo.SetBindingData(_sectionBundleInfo); |
| | | } |
| | | _ctrlSectionBundleInfo.ShowPage(_hdrBaseInfo, _geomBaseInfo, |
| | | DPumpHydr.ViewModel.eWizardStepDiretion.åè¿, true); |
| | | DPumpHydr.ViewModel.eWizardStepDiretion.åè¿, false); |
| | | _ctrlSectionBundleInfo.RefreshAllSectPara(_sectionBundleInfo); |
| | | RefreshSectShapeWhole18(_sectionBundleInfo); |
| | | _stepTreeDockPanel.SetFocusedNode(this._stepTreeDockPanel.Step_ID_Section18_Full); |
| | |
| | | if (last_step_id > this._stepTreeDockPanel.Step_ID_Section18_Full) |
| | | step_direction = DPumpHydr.ViewModel.eWizardStepDiretion.åé; |
| | | |
| | | _ctrlSectionBundleInfo.ShowPage(_hdrBaseInfo, _geomBaseInfo, step_direction,false); |
| | | _ctrlSectionBundleInfo.ShowPage(_hdrBaseInfo, _geomBaseInfo, step_direction,true); |
| | | |
| | | DockStepParaCtrl(_ctrlSectionBundleInfo); |
| | | |
| | |
| | | } |
| | | public ViewModel.eOutflowShapeStyle ShapeStyle { get; set; } = ViewModel.eOutflowShapeStyle.æªç¥; |
| | | public ViewModel.eOutflowLinkStyle LinkStyle { get; set; } = ViewModel.eOutflowLinkStyle.æ²çº¿; |
| | | |
| | | /// <summary> |
| | | /// ä¸å¿è·ç¦» å¾çä¸çA |
| | | /// </summary> |
| | | public double Offset { get; set; } //å¾çä¸çA = 0.0; |
| | | /// <summary> |
| | | /// åºå£é¿åº¦ å¾çä¸L |
| | | /// </summary> |
| | | public double Heigh { get; set; } //å¾çä¸çL = 420.0; |
| | | /// <summary> |
| | | /// åºå£å®½åº¦ å¾çä¸çD4 |
| | | /// </summary> |
| | | public double Dia { get; set; } //å¾çä¸çD4 = 80.0; |
| | | /// <summary> |
| | | /// å³ä¸æ²çº¿ç¼©æ¾é |
| | | /// </summary> |
| | | public double Tangent_Top_Right { get; set; } = 1.0; //å线缩æ¾é = m_dTopValue; |
| | | /// <summary> |
| | | /// å³ä¸æ²çº¿ç¼©æ¾é |
| | | /// </summary> |
| | | public double Tangent_Btm_Right { get; set; } = 1.0; //å线缩æ¾é = m_dBtmValue; |
| | | /// <summary> |
| | | /// 左䏿²çº¿ç¼©æ¾é |
| | | /// </summary> |
| | | public double Tangent_Top_Left { get; set; } = 1.0; //å线缩æ¾é = m_dTopValue; |
| | | /// <summary> |
| | | /// 左䏿²çº¿ç¼©æ¾é |
| | | /// </summary> |
| | | public double Tangent_Btm_Left { get; set; } = 1.0; //å线缩æ¾é = m_dBtmValue; |
| | | /// <summary> |
| | | /// å弧龿¥æ¶R1 |
| | | /// </summary> |
| | | public double R1 { get; set; }//åå¼§è¿æ¥æ¶çR1 |
| | | /// <summary> |
| | | /// å弧龿¥æ¶R2 |
| | | /// </summary> |
| | | public double R2 { get; set; }//åå¼§è¿æ¥æ¶çR2 |
| | | /// <summary> |
| | | /// åºå£ä¸æ²çº¿æåå¼§ä¹é´çé«åº¦ å·¦ |
| | | /// </summary> |
| | | public double H1 { get; set; } //å¾çä¸çH1 = 10; |
| | | /// <summary> |
| | | /// åºå£ä¸æ²çº¿æåå¼§ä¹é´çé«åº¦ å³ |
| | | /// </summary> |
| | | public double H2 { get; set; } //å¾çä¸çH2 = 10; |
| | | /// <summary> |
| | | /// å²èåå¾ |
| | | /// </summary> |
| | | public double Septalradius { get; set; } //éèåå¾r |
| | | |
| | | public double CalR2( |
| | |
| | | /// <returns></returns> |
| | | public static double GetSectStartAngle(DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle style) |
| | | { |
| | | if (style == DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | if (style == DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | return 0; |
| | | } |
| | |
| | | { |
| | | æªç¥=-1, |
| | | ä¸å¿åºå£ = 0, |
| | | ä¾§é¢åºå£_æ²çº¿è¿æ¥ = 1, |
| | | ä¾§é¢åºå£ = 1, |
| | | ä¾§é¢åºå£_ç´çº¿è¿æ¥ = 2 |
| | | } |
| | | public enum eOutflowLinkStyle |
| | |
| | | // comboBoxType |
| | | // |
| | | comboBoxType.FormattingEnabled = true; |
| | | comboBoxType.Items.AddRange(new object[] { "ä¸å¿åºå£", "ä¾§é¢åºå£ï¼æ²çº¿é¾æ¥ï¼", "ä¾§é¢åºå£ï¼ç´çº¿é¾æ¥ï¼" }); |
| | | comboBoxType.Items.AddRange(new object[] { "ä¸å¿åºå£", "ä¾§é¢åºå£", "ä¾§é¢åºå£ï¼ç´çº¿é¾æ¥ï¼" }); |
| | | comboBoxType.Location = new System.Drawing.Point(29, 0); |
| | | comboBoxType.Name = "comboBoxType"; |
| | | comboBoxType.Size = new System.Drawing.Size(236, 23); |
| | |
| | | tabPage1.Controls.Add(_parasControlArcCenter); |
| | | return; |
| | | } |
| | | if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | metroTileåºå£å¾ç.BackgroundImage = GlobalResource.BuildImage("Central-exit.png", 878, 238); |
| | | _parasControlArcSide.SetA_state(true); |
| | |
| | | _parasControlCenter.SetA_state(false); |
| | | tabPage1.Controls.Add(_parasControlCenter); |
| | | return; |
| | | case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥: |
| | | case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£: |
| | | metroTileåºå£å¾ç.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 878, 238); |
| | | _parasControlCurve.SetA_state(true); |
| | | tabPage1.Controls.Add(_parasControlCurve); |
| | |
| | | comboBoxType.SelectedIndex = (int)_sharp_type; |
| | | if (_isxml) |
| | | { |
| | | InitialOutflowStyle(); |
| | | _isxml = false; |
| | | |
| | | } |
| | |
| | | double outer_dia = 4.5 * Math.Pow(hdrBaseInfo.Q / 3600 / hdrBaseInfo.n, 1 / 3.0) * 1000; |
| | | //侧颿²çº¿ |
| | | OutflowParas outflowParas侧颿²çº¿ = null; |
| | | if(outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | if(outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | outflowParas侧颿²çº¿ = outflowParas; |
| | | } |
| | |
| | | |
| | | //åå¼§ä¾§é¢ |
| | | OutflowParas outflowParasåå¼§ä¾§é¢ = null; |
| | | if (outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥ && outflowParas.LinkStyle == eOutflowLinkStyle.ç´çº¿åå¼§) |
| | | if (outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.ä¾§é¢åºå£ && outflowParas.LinkStyle == eOutflowLinkStyle.ç´çº¿åå¼§) |
| | | { |
| | | outflowParasåå¼§ä¾§é¢ = outflowParas; |
| | | } |
| | |
| | | return null; |
| | | _outflowParas = _parasControlArcCenter.GetBindingData(out error); |
| | | } |
| | | if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | if (_parasControlArcSide == null) |
| | | return null; |
| | |
| | | return null; |
| | | _outflowParas = _parasControlCenter.GetBindingData(out error); |
| | | break; |
| | | case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥: |
| | | case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£: |
| | | _outflowParas = _parasControlCurve.GetBindingData(out error); |
| | | break; |
| | | case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_ç´çº¿è¿æ¥: |
| | |
| | | { |
| | | paras2.Offset = (int)((_geomBaseInfo.D3 + _sectionBundleInfo.H[8]) / 2 + 0.5); |
| | | } |
| | | else if (paras3.ShapeStyle == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | else if (paras3.ShapeStyle == eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | paras3.Offset = (int)(((_geomBaseInfo.D3 / 2 + _sectionBundleInfo.H[8]) * 1.6 / 3 / 5) + 1) * 5; |
| | | } |
| | |
| | | { |
| | | comboBoxType.SelectedIndex = 0; |
| | | } |
| | | else if (_sharp_type == DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | else if (_sharp_type == DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | comboBoxType.SelectedIndex = 1; |
| | | } |
| | |
| | | private void RefreshModel() |
| | | { |
| | | string error; |
| | | if(OnRefreshShape3D == null) |
| | | { |
| | | return; |
| | | } |
| | | var resp = OnRefreshShape3D(GetBindingData(out error)); |
| | | if (resp != null) |
| | | { |
| | |
| | | { |
| | | _parasControlArcCenter.SetBindingData(resp); |
| | | } |
| | | else if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | else if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | _parasControlArcSide.SetBindingData(resp); |
| | | } |
| | |
| | | { |
| | | _parasControlLine.SetBindingData(resp); |
| | | } |
| | | else if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥) |
| | | else if (_sharp_type == eOutflowShapeStyle.ä¾§é¢åºå£) |
| | | { |
| | | _parasControlCurve.SetBindingData(resp); |
| | | } |
| | |
| | | } |
| | | else if (comboBoxType.SelectedIndex == 1) |
| | | { |
| | | _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£_æ²çº¿è¿æ¥; |
| | | _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.ä¾§é¢åºå£; |
| | | checkBoxåå¼§è¿æ¥.Enabled = true; |
| | | checkBoxåå¼§è¿æ¥.Visible = true; |
| | | _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.æ²çº¿; |
| | |
| | | } |
| | | if (_isxml) |
| | | { |
| | | InitialOutflowStyle(); |
| | | return; |
| | | } |
| | | InitialOutflowStyle(); |
| | |
| | | } |
| | | if (_isxml) |
| | | { |
| | | InitialOutflowStyle(); |
| | | return; |
| | | } |
| | | |
| | |
| | | public Action<double> OnRefreshShape = null; |
| | | |
| | | |
| | | internal double InitialParas( |
| | | public double InitialParas( |
| | | ViewModel.HdrBaseInfo hdrBaseInfo, |
| | | ViewModel.GeomBaseInfo geomBaseInfo, |
| | | ViewModel.OutflowParas outflowParas, |
| | |
| | | mTextBoxEditå度.Text = thickness.ToString(); |
| | | return thickness; |
| | | } |
| | | public double GetBindingData(out string error) |
| | | { |
| | | error = null; |
| | | if (!double.TryParse(mTextBoxEditå度.Text, out double thickness)) |
| | | { |
| | | error = "ååº¦ä¸æ¯æ£ç¡®çæ ¼å¼"; |
| | | return 0; |
| | | } |
| | | return thickness; |
| | | |
| | | } |
| | | internal void InitialParas(double thickness) |
| | | { |
| | | |
| | |
| | | //b3min=b3max=b3=0.0; |
| | | //FAI0=FAI0min=FAI0max=0.0; |
| | | //K3=0.0; |
| | | /// <summary> |
| | | /// åºåç´å¾ |
| | | /// </summary> |
| | | public double D3 { get;set;} |
| | | /// <summary> |
| | | /// |
| | | /// è壳å
¥å£å®½åº¦ |
| | | /// </summary> |
| | | public double B3 { get; set; } |
| | | /// <summary> |
| | |
| | | /// å½¢ç¶ç±»å 0 æè½¬å 1 åè壳å 2 ç¯å 3åæè½¬å |
| | | /// </summary> |
| | | public int ShapeType { get; set; } |
| | | /// <summary> |
| | | /// æµé |
| | | /// </summary> |
| | | public double Q { get; set; } |
| | | /// <summary> |
| | | /// æ¬ç¨ |
| | | /// </summary> |
| | | public double H { get; set; } |
| | | public double n { get; set; }//转é |
| | | public double D2 { get; set; }//å¶è½®å¤å¾ |
| | | public double B2 { get; set; }//å¶è½®å®½åº¦ |
| | | /// <summary> |
| | | /// 转é |
| | | /// </summary> |
| | | public double n { get; set; } |
| | | /// <summary> |
| | | /// å¶è½®å¤å¾ |
| | | /// </summary> |
| | | public double D2 { get; set; } |
| | | /// <summary> |
| | | /// å¶è½®å®½åº¦ |
| | | /// </summary> |
| | | public double B2 { get; set; } |
| | | /// <summary> |
| | | /// æ¯å¦æ¯å叿³µ |
| | | /// </summary> |
| | |
| | | string error; |
| | | if (!Verify(out error)) |
| | | { |
| | | return null; |
| | | return error; |
| | | } |
| | | error = null; |
| | | |
| | |
| | | return true; |
| | | } |
| | | /// <summary> |
| | | /// æªé¢å½¢ç¶ç±»å |
| | | /// æªé¢å½¢ç¶ç±»å 0对称 1ä¸å¯¹ç§° 2ç©å½¢ |
| | | /// </summary> |
| | | public eSectionShapeType ShapeType { get; set; } = eSectionShapeType.对称; |
| | | |
| | |
| | | /// å¼å§æªé¢ç¼å· |
| | | /// </summary> |
| | | public int StartSectionNumber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 左侧gamaè§åº¦ 1å¼å§ |
| | | /// </summary> |
| | | public List<double> GaMa_Left { get; set; } |
| | | /// <summary> |
| | | /// å³ä¾§gamaè§åº¦ 1å¼å§ |
| | | /// </summary> |
| | | public List<double> GaMa_Right{ get; set;} |
| | | /// <summary> |
| | | /// æé¢é¢ç§¯ 1å¼å§ |
| | | /// </summary> |
| | | public List<double> Area { get; set; } |
| | | |
| | | //æé¢ä¿¡æ¯ |
| | | public List<double> H { get; set; }//é«åº¦ |
| | | public double R_out { get; set; }//å¤å´çåå¾ |
| | | public List<double> R_Left { get; set; }//è§åº¦1边对åºçåè§åå¾ UGä¸R1 |
| | | public List<double> R_Right { get; set; }//è§åº¦2边对åºçåè§åå¾ UGä¸R2 |
| | | |
| | | public double BaseWidth { get; set; }//åºé¨å®½åº¦ å°±æ¯B3 |
| | | public double BaseCircleRadius { get; set; }//åºé¨ååå¾ å°±æ¯D3/2 |
| | | /// <summary> |
| | | /// é«åº¦ 1å¼å§ |
| | | /// </summary> |
| | | public List<double> H { get; set; } |
| | | /// <summary> |
| | | /// å¤å´çåå¾ |
| | | /// </summary> |
| | | public double R_out { get; set; } |
| | | /// <summary> |
| | | /// è§åº¦1边对åºçåè§åå¾ UGä¸R1 1å¼å§ |
| | | /// </summary> |
| | | public List<double> R_Left { get; set; } |
| | | /// <summary> |
| | | /// è§åº¦2边对åºçåè§åå¾ UGä¸R2 1å¼å§ |
| | | /// </summary> |
| | | public List<double> R_Right { get; set; } |
| | | /// <summary> |
| | | /// åºé¨å®½åº¦ å°±æ¯B3 |
| | | /// </summary> |
| | | public double BaseWidth { get; set; } |
| | | /// <summary> |
| | | /// åºé¨ååå¾ å°±æ¯D3/2 |
| | | /// </summary> |
| | | public double BaseCircleRadius { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// 仿ææé¢åæ°ä¸è·åå°å个æé¢çåæ° |
| | | /// </summary> |
| | | /// <param name="index"></param> |
| | | /// <param name="index">ç¬¬å æé¢</param> |
| | | /// <returns></returns> |
| | | public SectionShapePara ToSectionShapePara(int index) |
| | | { |
| | |
| | | _sectionBundleInfo = sectionBundle_info; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºçé¢ |
| | | /// </summary> |
| | | /// <param name="base_info">åºæ¬åæ°</param> |
| | | /// <param name="geom_info">åºååæ°</param> |
| | | /// <param name="step_direction">åè¿/åé</param> |
| | | /// <param name="isRefreshModel">æ¯å¦éè¦è¦çæé¢åæ°</param> |
| | | public void ShowPage( |
| | | ViewModel.HdrBaseInfo base_info, |
| | | ViewModel.GeomBaseInfo geom_info, |
| | | DPumpHydr.ViewModel.eWizardStepDiretion step_direction, bool isRefreshModel = true) |
| | | DPumpHydr.ViewModel.eWizardStepDiretion step_direction, bool isRefreshModel = false) |
| | | { |
| | | if (step_direction == DPumpHydr.ViewModel.eWizardStepDiretion.åé) |
| | | { |
| | |
| | | _hdrBaseInfo = base_info; |
| | | _geomBaseInfo = geom_info; |
| | | } |
| | | if (isRefreshModel) |
| | | if (!isRefreshModel) |
| | | { |
| | | return; |
| | | } |
| | |
| | | } |
| | | |
| | | RefreshAllSectPara(_sectionBundleInfo); |
| | | |
| | | |
| | | |
| | | RefreshShape(_sectionBundleInfo); |
| | | } |