프로젝트

일반

사용자정보

개정판 878c6f3b

ID878c6f3b3463bf016be399f4896f851959ea91e7
상위 e4acf521
하위 3e235028

gaqhf 이(가) 약 6년 전에 추가함

dev issue #000 : remove old SPPID Converter

차이점 보기:

DTI_PID/AutoSPPID/AutoSPPID.vb
1
Imports Llama
2
Imports Plaice
3

  
4

  
5
Public Class AutoSPPID
6
    Dim objPlacement = New Placement
7
    Public Sub TestPipe()
8
        Dim datasource As LMADataSource
9
        datasource = objPlacement.PIDDataSource
10
        Dim PipeRunLocation As String
11
        Dim objItem As LMAItem
12

  
13
        Dim objConnector As LMConnector
14
        Dim objInputs As PlaceRunInputs
15
        Dim objSymbol As LMSymbol
16
        Dim ValveLocation As String
17
        PipeRunLocation = "\Piping\Routing\Process Lines\Primary Piping.sym"
18
        objInputs = New PlaceRunInputs
19
        objInputs.AddPoint(0.1, 0.1)
20
        objInputs.AddPoint(0.2, 0.1)
21
        objItem = objPlacement.PIDCreateItem(PipeRunLocation)
22
        objConnector = objPlacement.PIDPlaceRun(objItem, objInputs)
23
        Dim objPipeRun As LMPipeRun = datasource.GetPipeRun(objConnector.ModelItemID)
24

  
25
        objPipeRun.Attributes("OperFluidCode").Value = "AFS"
26
        objPipeRun.Attributes("InsulThick").Value = "25"
27
        objPipeRun.Attributes("NominalDiameter").Value = "6"""
28
        objPipeRun.Attributes("PipeRunClass").Value = "Piping"
29
        objPipeRun.Attributes("pipingmaterialsclass").Value = "NA1S"
30
        objPipeRun.Commit()
31

  
32
        ValveLocation = "\Piping\Valves\2 Way Common\Ball Valve.sym"
33
        objSymbol = objPlacement.PIDPlaceSymbol(ValveLocation, 0.15, 0.3, , 1.57)
34
        objInputs = New PlaceRunInputs
35
        objInputs.AddConnectorTarget(objConnector, 0.15, 0.1)
36
        objInputs.AddPoint(0.15, 0.15)
37
        objInputs.AddPoint(0.12, 0.15)
38
        objInputs.AddPoint(0.12, 0.2)
39
        objInputs.AddPoint(0.15, 0.2)
40
        objInputs.AddSymbolTarget(objSymbol, 0.15, 0.3)
41
        objItem = objPlacement.PIDCreateItem(PipeRunLocation)
42
        objConnector = objPlacement.PIDPlaceRun(objItem, objInputs)
43
        objPipeRun = datasource.GetPipeRun(objConnector.ModelItemID)
44
        objPipeRun.Attributes("flowdirection").Value = "End 1 is downstream (Outlet)"
45
        objPipeRun.Attributes("SP_JDesignMaxTemp").Value = "-273.15"
46
        objPipeRun.Attributes("SP_JAltDesignMaxTemp").Value = "-273.15"
47
        objPipeRun.Commit()
48

  
49
        objInputs = New PlaceRunInputs
50
        objInputs.AddSymbolTarget(objSymbol, 0.15, 0.304)
51
        '  objInputs.AddPoint(0.15, 0.304)
52
        objInputs.AddPoint(0.15, 0.33)
53
        objInputs.AddPoint(0.2, 0.33)
54
        objInputs.AddPoint(0.2, 0.25)
55
        objInputs.AddSymbolTarget(objSymbol, 0.2765, 0.25)
56
        objItem = objPlacement.PIDCreateItem(PipeRunLocation)
57
        objConnector = objPlacement.PIDPlaceRun(objItem, objInputs)
58
        objPipeRun = datasource.GetPipeRun(objConnector.ModelItemID)
59
        objPipeRun.Attributes("flowdirection").Value = "End 1 is downstream (Outlet)"
60
        objPipeRun.Attributes("SP_JDesignMaxTemp").Value = "-273.15 C"
61
        objPipeRun.Attributes("SP_JAltDesignMaxTemp").Value = "-273.15 C"
62
        '   objPipeRun.Attributes("SP_SP_JAltDesignMaxTempSI").Value = "-273.15 C"
63
        objPipeRun.Attributes("SP_JAltOperMaxTemp").Value = "-273.15 C"
64
        ' objPipeRun.Attributes("SP_SP_JAltOperMaxTempSI").Value = "-273.15 C"
65
        objPipeRun.Attributes("SP_JDesignMaxTemp").Value = "-273.15 C"
66
        ' objPipeRun.Attributes("SP_SP_JDesignMaxTempSI").Value = "-273.15 C"
67
        objPipeRun.Attributes("SP_JOperMaxTemp").Value = "-273.15 C"
68
        '  objPipeRun.Attributes("SP_SP_JOperMaxTempSI").Value = "-273.15 C"
69
        objPipeRun.Attributes("SP_JTestMaxTemp").Value = "-273.15 C"
70
        '  objPipeRun.Attributes("SP_SP_JTestMaxTempSI").Value = "-273.15 C"
71
        objPipeRun.Commit()
72

  
73
    End Sub
74

  
75

  
76

  
77

  
78

  
79

  
80

  
81
End Class
DTI_PID/AutoSPPID/AutoSPPID.vbproj
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
  <PropertyGroup>
5
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
    <ProjectGuid>{9D098ED7-D6D2-4762-8A2D-E5824E191039}</ProjectGuid>
8
    <OutputType>Library</OutputType>
9
    <RootNamespace>AutoSPPID</RootNamespace>
10
    <AssemblyName>AutoSPPID</AssemblyName>
11
    <FileAlignment>512</FileAlignment>
12
    <MyType>Windows</MyType>
13
    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
14
  </PropertyGroup>
15
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16
    <DebugSymbols>true</DebugSymbols>
17
    <DebugType>full</DebugType>
18
    <DefineDebug>true</DefineDebug>
19
    <DefineTrace>true</DefineTrace>
20
    <OutputPath>bin\Debug\</OutputPath>
21
    <DocumentationFile>AutoSPPID.xml</DocumentationFile>
22
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
23
  </PropertyGroup>
24
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25
    <DebugType>pdbonly</DebugType>
26
    <DefineDebug>false</DefineDebug>
27
    <DefineTrace>true</DefineTrace>
28
    <Optimize>true</Optimize>
29
    <OutputPath>bin\Release\</OutputPath>
30
    <DocumentationFile>AutoSPPID.xml</DocumentationFile>
31
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
32
  </PropertyGroup>
33
  <PropertyGroup>
34
    <OptionExplicit>On</OptionExplicit>
35
  </PropertyGroup>
36
  <PropertyGroup>
37
    <OptionCompare>Binary</OptionCompare>
38
  </PropertyGroup>
39
  <PropertyGroup>
40
    <OptionStrict>Off</OptionStrict>
41
  </PropertyGroup>
42
  <PropertyGroup>
43
    <OptionInfer>On</OptionInfer>
44
  </PropertyGroup>
45
  <ItemGroup>
46
    <Reference Include="System" />
47
    <Reference Include="System.Data" />
48
    <Reference Include="System.Xml" />
49
    <Reference Include="System.Core" />
50
    <Reference Include="System.Xml.Linq" />
51
    <Reference Include="System.Data.DataSetExtensions" />
52
    <Reference Include="System.Net.Http" />
53
  </ItemGroup>
54
  <ItemGroup>
55
    <Import Include="Microsoft.VisualBasic" />
56
    <Import Include="System" />
57
    <Import Include="System.Collections" />
58
    <Import Include="System.Collections.Generic" />
59
    <Import Include="System.Data" />
60
    <Import Include="System.Diagnostics" />
61
    <Import Include="System.Linq" />
62
    <Import Include="System.Xml.Linq" />
63
    <Import Include="System.Threading.Tasks" />
64
  </ItemGroup>
65
  <ItemGroup>
66
    <Compile Include="AutoSPPID.vb" />
67
    <Compile Include="My Project\AssemblyInfo.vb" />
68
    <Compile Include="My Project\Application.Designer.vb">
69
      <AutoGen>True</AutoGen>
70
      <DependentUpon>Application.myapp</DependentUpon>
71
    </Compile>
72
    <Compile Include="My Project\Resources.Designer.vb">
73
      <AutoGen>True</AutoGen>
74
      <DesignTime>True</DesignTime>
75
      <DependentUpon>Resources.resx</DependentUpon>
76
    </Compile>
77
    <Compile Include="My Project\Settings.Designer.vb">
78
      <AutoGen>True</AutoGen>
79
      <DependentUpon>Settings.settings</DependentUpon>
80
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
81
    </Compile>
82
  </ItemGroup>
83
  <ItemGroup>
84
    <EmbeddedResource Include="My Project\Resources.resx">
85
      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
86
      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
87
      <CustomToolNamespace>My.Resources</CustomToolNamespace>
88
      <SubType>Designer</SubType>
89
    </EmbeddedResource>
90
  </ItemGroup>
91
  <ItemGroup>
92
    <None Include="My Project\Application.myapp">
93
      <Generator>MyApplicationCodeGenerator</Generator>
94
      <LastGenOutput>Application.Designer.vb</LastGenOutput>
95
    </None>
96
    <None Include="My Project\Settings.settings">
97
      <Generator>SettingsSingleFileGenerator</Generator>
98
      <CustomToolNamespace>My</CustomToolNamespace>
99
      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
100
    </None>
101
  </ItemGroup>
102
  <ItemGroup>
103
    <COMReference Include="ISPClientData3">
104
      <Guid>{A32983E1-A1BD-11D3-BBEE-0800363EAF03}</Guid>
105
      <VersionMajor>2</VersionMajor>
106
      <VersionMinor>0</VersionMinor>
107
      <Lcid>0</Lcid>
108
      <WrapperTool>tlbimp</WrapperTool>
109
      <Isolated>False</Isolated>
110
      <EmbedInteropTypes>True</EmbedInteropTypes>
111
    </COMReference>
112
    <COMReference Include="ISPPropertyInf">
113
      <Guid>{E0356D80-06B4-11D2-B793-080036EEB703}</Guid>
114
      <VersionMajor>1</VersionMajor>
115
      <VersionMinor>1</VersionMinor>
116
      <Lcid>0</Lcid>
117
      <WrapperTool>tlbimp</WrapperTool>
118
      <Isolated>False</Isolated>
119
      <EmbedInteropTypes>True</EmbedInteropTypes>
120
    </COMReference>
121
    <COMReference Include="Llama">
122
      <Guid>{425D14E8-A0C1-4F4A-9FB8-4D7CA982F144}</Guid>
123
      <VersionMajor>6</VersionMajor>
124
      <VersionMinor>0</VersionMinor>
125
      <Lcid>0</Lcid>
126
      <WrapperTool>tlbimp</WrapperTool>
127
      <Isolated>False</Isolated>
128
      <EmbedInteropTypes>True</EmbedInteropTypes>
129
    </COMReference>
130
    <COMReference Include="NEWENUMWRAPPERLib">
131
      <Guid>{58B86513-1FA4-4928-9D79-1076AC6F69EF}</Guid>
132
      <VersionMajor>1</VersionMajor>
133
      <VersionMinor>0</VersionMinor>
134
      <Lcid>0</Lcid>
135
      <WrapperTool>tlbimp</WrapperTool>
136
      <Isolated>False</Isolated>
137
      <EmbedInteropTypes>True</EmbedInteropTypes>
138
    </COMReference>
139
    <COMReference Include="PIDCacheAccessInfLib">
140
      <Guid>{CB6C022D-D17C-4E18-9B36-3A0D8B3282A2}</Guid>
141
      <VersionMajor>1</VersionMajor>
142
      <VersionMinor>0</VersionMinor>
143
      <Lcid>0</Lcid>
144
      <WrapperTool>tlbimp</WrapperTool>
145
      <Isolated>False</Isolated>
146
      <EmbedInteropTypes>True</EmbedInteropTypes>
147
    </COMReference>
148
    <COMReference Include="PidObjectManagerInf">
149
      <Guid>{534174BA-6991-4F8B-8DD0-FE2E46B6A67C}</Guid>
150
      <VersionMajor>2</VersionMajor>
151
      <VersionMinor>0</VersionMinor>
152
      <Lcid>0</Lcid>
153
      <WrapperTool>tlbimp</WrapperTool>
154
      <Isolated>False</Isolated>
155
      <EmbedInteropTypes>True</EmbedInteropTypes>
156
    </COMReference>
157
    <COMReference Include="Plaice">
158
      <Guid>{0CD9BF08-A064-44F4-8A5E-9A39006613FE}</Guid>
159
      <VersionMajor>5</VersionMajor>
160
      <VersionMinor>0</VersionMinor>
161
      <Lcid>0</Lcid>
162
      <WrapperTool>tlbimp</WrapperTool>
163
      <Isolated>False</Isolated>
164
      <EmbedInteropTypes>True</EmbedInteropTypes>
165
    </COMReference>
166
    <COMReference Include="VBA">
167
      <Guid>{000204EF-0000-0000-C000-000000000046}</Guid>
168
      <VersionMajor>6</VersionMajor>
169
      <VersionMinor>0</VersionMinor>
170
      <Lcid>9</Lcid>
171
      <WrapperTool>tlbimp</WrapperTool>
172
      <Isolated>False</Isolated>
173
      <EmbedInteropTypes>True</EmbedInteropTypes>
174
    </COMReference>
175
  </ItemGroup>
176
  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
177
</Project>
DTI_PID/AutoSPPID/My Project/Application.Designer.vb
1
'------------------------------------------------------------------------------
2
' <auto-generated>
3
'     This code was generated by a tool.
4
'     Runtime Version:4.0.30319.42000
5
'
6
'     Changes to this file may cause incorrect behavior and will be lost if
7
'     the code is regenerated.
8
' </auto-generated>
9
'------------------------------------------------------------------------------
10

  
11
Option Strict On
12
Option Explicit On
13

  
DTI_PID/AutoSPPID/My Project/Application.myapp
1
<?xml version="1.0" encoding="utf-8"?>
2
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
  <MySubMain>false</MySubMain>
4
  <SingleInstance>false</SingleInstance>
5
  <ShutdownMode>0</ShutdownMode>
6
  <EnableVisualStyles>true</EnableVisualStyles>
7
  <AuthenticationMode>0</AuthenticationMode>
8
  <ApplicationType>1</ApplicationType>
9
  <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
10
</MyApplicationData>
DTI_PID/AutoSPPID/My Project/AssemblyInfo.vb
1
Imports System
2
Imports System.Reflection
3
Imports System.Runtime.InteropServices
4

  
5
' 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 
6
' 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
7
' 이러한 특성 값을 변경하세요.
8

  
9
' 어셈블리 특성 값을 검토합니다.
10

  
11
<Assembly: AssemblyTitle("AutoSPPID")>
12
<Assembly: AssemblyDescription("")>
13
<Assembly: AssemblyCompany("")>
14
<Assembly: AssemblyProduct("AutoSPPID")>
15
<Assembly: AssemblyCopyright("Copyright ©  2018")>
16
<Assembly: AssemblyTrademark("")>
17

  
18
<Assembly: ComVisible(False)>
19

  
20
'이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
21
<Assembly: Guid("c692d11c-ab58-410d-8d2b-6a1124163ba1")>
22

  
23
' 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
24
'
25
'      주 버전
26
'      부 버전 
27
'      빌드 번호
28
'      수정 버전
29
'
30
' 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
31
' 지정되도록 할 수 있습니다.
32
' <Assembly: AssemblyVersion("1.0.*")>
33

  
34
<Assembly: AssemblyVersion("1.0.0.0")>
35
<Assembly: AssemblyFileVersion("1.0.0.0")>
DTI_PID/AutoSPPID/My Project/Resources.Designer.vb
1
'------------------------------------------------------------------------------
2
' <auto-generated>
3
'     This code was generated by a tool.
4
'     Runtime Version:4.0.30319.42000
5
'
6
'     Changes to this file may cause incorrect behavior and will be lost if
7
'     the code is regenerated.
8
' </auto-generated>
9
'------------------------------------------------------------------------------
10

  
11
Option Strict On
12
Option Explicit On
13

  
14

  
15
Namespace My.Resources
16
    
17
    'This class was auto-generated by the StronglyTypedResourceBuilder
18
    'class via a tool like ResGen or Visual Studio.
19
    'To add or remove a member, edit your .ResX file then rerun ResGen
20
    'with the /str option, or rebuild your VS project.
21
    '''<summary>
22
    '''  A strongly-typed resource class, for looking up localized strings, etc.
23
    '''</summary>
24
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
25
     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
26
     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
27
     Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
28
    Friend Module Resources
29

  
30
        Private resourceMan As Global.System.Resources.ResourceManager
31

  
32
        Private resourceCulture As Global.System.Globalization.CultureInfo
33

  
34
        '''<summary>
35
        '''  Returns the cached ResourceManager instance used by this class.
36
        '''</summary>
37
        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
38
        Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
39
            Get
40
                If Object.ReferenceEquals(resourceMan, Nothing) Then
41
                    Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("AutoSPPID.Resources", GetType(Resources).Assembly)
42
                    resourceMan = temp
43
                End If
44
                Return resourceMan
45
            End Get
46
        End Property
47

  
48
        '''<summary>
49
        '''  Overrides the current thread's CurrentUICulture property for all
50
        '''  resource lookups using this strongly typed resource class.
51
        '''</summary>
52
        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
53
        Friend Property Culture() As Global.System.Globalization.CultureInfo
54
            Get
55
                Return resourceCulture
56
            End Get
57
            Set(ByVal value As Global.System.Globalization.CultureInfo)
58
                resourceCulture = value
59
            End Set
60
        End Property
61
    End Module
62
End Namespace
DTI_PID/AutoSPPID/My Project/Resources.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:element name="root" msdata:IsDataSet="true">
64
      <xsd:complexType>
65
        <xsd:choice maxOccurs="unbounded">
66
          <xsd:element name="metadata">
67
            <xsd:complexType>
68
              <xsd:sequence>
69
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
70
              </xsd:sequence>
71
              <xsd:attribute name="name" type="xsd:string" />
72
              <xsd:attribute name="type" type="xsd:string" />
73
              <xsd:attribute name="mimetype" type="xsd:string" />
74
            </xsd:complexType>
75
          </xsd:element>
76
          <xsd:element name="assembly">
77
            <xsd:complexType>
78
              <xsd:attribute name="alias" type="xsd:string" />
79
              <xsd:attribute name="name" type="xsd:string" />
80
            </xsd:complexType>
81
          </xsd:element>
82
          <xsd:element name="data">
83
            <xsd:complexType>
84
              <xsd:sequence>
85
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87
              </xsd:sequence>
88
              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91
            </xsd:complexType>
92
          </xsd:element>
93
          <xsd:element name="resheader">
94
            <xsd:complexType>
95
              <xsd:sequence>
96
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97
              </xsd:sequence>
98
              <xsd:attribute name="name" type="xsd:string" use="required" />
99
            </xsd:complexType>
100
          </xsd:element>
101
        </xsd:choice>
102
      </xsd:complexType>
103
    </xsd:element>
104
  </xsd:schema>
105
  <resheader name="resmimetype">
106
    <value>text/microsoft-resx</value>
107
  </resheader>
108
  <resheader name="version">
109
    <value>2.0</value>
110
  </resheader>
111
  <resheader name="reader">
112
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113
  </resheader>
114
  <resheader name="writer">
115
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
</root>
DTI_PID/AutoSPPID/My Project/Settings.Designer.vb
1
'------------------------------------------------------------------------------
2
' <auto-generated>
3
'     This code was generated by a tool.
4
'     Runtime Version:4.0.30319.42000
5
'
6
'     Changes to this file may cause incorrect behavior and will be lost if
7
'     the code is regenerated.
8
' </auto-generated>
9
'------------------------------------------------------------------------------
10

  
11
Option Strict On
12
Option Explicit On
13

  
14

  
15
Namespace My
16

  
17
    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
18
     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
19
     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
20
    Partial Friend NotInheritable Class MySettings
21
        Inherits Global.System.Configuration.ApplicationSettingsBase
22

  
23
        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24

  
25
#Region "My.Settings Auto-Save Functionality"
26
#If _MyType = "WindowsForms" Then
27
        Private Shared addedHandler As Boolean
28

  
29
        Private Shared addedHandlerLockObject As New Object
30

  
31
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
        Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33
            If My.Application.SaveMySettingsOnExit Then
34
                My.Settings.Save()
35
            End If
36
        End Sub
37
#End If
38
#End Region
39

  
40
        Public Shared ReadOnly Property [Default]() As MySettings
41
            Get
42

  
43
#If _MyType = "WindowsForms" Then
44
                   If Not addedHandler Then
45
                        SyncLock addedHandlerLockObject
46
                            If Not addedHandler Then
47
                                AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
                                addedHandler = True
49
                            End If
50
                        End SyncLock
51
                    End If
52
#End If
53
                Return defaultInstance
54
            End Get
55
        End Property
56
    End Class
57
End Namespace
58

  
59
Namespace My
60
    
61
    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _
62
     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
63
     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _
64
    Friend Module MySettingsProperty
65
        
66
        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _
67
        Friend ReadOnly Property Settings() As Global.AutoSPPID.My.MySettings
68
            Get
69
                Return Global.AutoSPPID.My.MySettings.Default
70
            End Get
71
        End Property
72
    End Module
73
End Namespace
DTI_PID/AutoSPPID/My Project/Settings.settings
1
<?xml version='1.0' encoding='utf-8'?>
2
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
3
  <Profiles>
4
    <Profile Name="(Default)" />
5
  </Profiles>
6
  <Settings />
7
</SettingsFile>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)