Changeset 12944 for branches/OptimizationNetworks/HeuristicLab.Networks
- Timestamp:
- 09/07/15 11:42:17 (9 years ago)
- Location:
- branches/OptimizationNetworks/HeuristicLab.Networks/3.3
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/HeuristicLab.Networks-3.3.csproj
r12326 r12944 205 205 <ItemGroup> 206 206 <Compile Include="AlgorithmNode.cs" /> 207 <Compile Include="CodeResources.Designer.cs"> 208 <AutoGen>True</AutoGen> 209 <DesignTime>True</DesignTime> 210 <DependentUpon>CodeResources.resx</DependentUpon> 211 </Compile> 207 212 <Compile Include="ConfigurationPort.cs" /> 208 213 <Compile Include="ExecutionPort.cs" /> … … 214 219 <Compile Include="IExecutionPort.cs" /> 215 220 <Compile Include="IUserDefinedMessagePort.cs" /> 216 <EmbeddedResource Include="KSPTSPConnectorCode.cs" /> 221 <EmbeddedResource Include="CodeResources.resx"> 222 <Generator>ResXFileCodeGenerator</Generator> 223 <LastGenOutput>CodeResources.Designer.cs</LastGenOutput> 224 </EmbeddedResource> 225 <Compile Include="KSPTSPConnectorCode.cs" /> 217 226 <Compile Include="KSPTSPConcurrentControlNetwork.cs" /> 218 227 <Compile Include="KSPTSPConnector.cs"> … … 220 229 </Compile> 221 230 <Compile Include="KSPTSPControl.cs" /> 222 < EmbeddedResource Include="KSPTSPControlCode.cs" />231 <Compile Include="KSPTSPControlCode.cs" /> 223 232 <Compile Include="KSPTSPNetwork.cs" /> 224 < EmbeddedResource Include="KSPTSPNetworkCode.cs" />225 < EmbeddedResource Include="KSPTSPConcurrentControlNetworkCode.cs" />233 <Compile Include="KSPTSPNetworkCode.cs" /> 234 <Compile Include="KSPTSPConcurrentControlNetworkCode.cs" /> 226 235 <Compile Include="Core\IConnectablePort.cs" /> 227 236 <Compile Include="Core\IMessage.cs" /> … … 258 267 <Compile Include="Programmable\IUserDefinedNode.cs" /> 259 268 <Compile Include="Programmable\ProgrammableNetwork.cs" /> 260 < EmbeddedResource Include="Programmable\ProgrammableNetworkCode.cs" />269 <Compile Include="Programmable\ProgrammableNetworkCode.cs" /> 261 270 <Compile Include="Programmable\ProgrammableNetworkItem.cs" /> 262 < EmbeddedResource Include="Programmable\ProgrammableNetworkItemCode.cs" />271 <Compile Include="Programmable\ProgrammableNetworkItemCode.cs" /> 263 272 <Compile Include="Programmable\ProgrammableNode.cs" /> 264 < EmbeddedResource Include="Programmable\ProgrammableNodeCode.cs" />273 <Compile Include="Programmable\ProgrammableNodeCode.cs" /> 265 274 <Compile Include="Programmable\UserDefinedNetwork.cs" /> 266 275 <Compile Include="Programmable\UserDefinedNode.cs" /> -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/KSPTSPConcurrentControlNetwork.cs
r11823 r12944 36 36 37 37 protected override string CodeTemplate { 38 get { return ReadCodeTemplate("HeuristicLab.Networks.KSPTSPConcurrentControlNetworkCode.cs"); }38 get { return CodeResources.KSPTSPConcurrentControlNetworkCode; } 39 39 } 40 40 -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/KSPTSPConnector.cs
r11712 r12944 30 30 public class KSPTSPConnector : ProgrammableNode { 31 31 protected override string CodeTemplate { 32 get { return ReadCodeTemplate("HeuristicLab.Networks.KSPTSPConnectorCode.cs"); }32 get { return CodeResources.KSPTSPConnectorCode; } 33 33 } 34 34 -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/KSPTSPControl.cs
r11823 r12944 58 58 59 59 protected override string CodeTemplate { 60 get { return ReadCodeTemplate("HeuristicLab.Networks.KSPTSPControlCode.cs"); }60 get { return CodeResources.KSPTSPControlCode; } 61 61 } 62 62 -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/KSPTSPNetwork.cs
r11713 r12944 31 31 public class KSPTSPNetwork : ProgrammableNetwork { 32 32 protected override string CodeTemplate { 33 get { return ReadCodeTemplate("HeuristicLab.Networks.KSPTSPNetworkCode.cs"); }33 get { return CodeResources.KSPTSPNetworkCode; } 34 34 } 35 35 -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/Programmable/ProgrammableNetwork.cs
r12943 r12944 56 56 57 57 protected override string CodeTemplate { 58 get { return ReadCodeTemplate("HeuristicLab.Networks.Programmable.ProgrammableNetworkCode.cs"); }58 get { return CodeResources.ProgrammableNetworkCode; } 59 59 } 60 60 -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/Programmable/ProgrammableNetworkItem.cs
r11712 r12944 101 101 102 102 protected virtual string CodeTemplate { 103 get { return ReadCodeTemplate("HeuristicLab.Networks.Programmable.ProgrammableNetworkItemCode.cs"); }103 get { return CodeResources.ProgrammableNetworkItemCode; } 104 104 } 105 105 [Storable] … … 397 397 } 398 398 #endregion 399 400 #region Helpers401 protected virtual string ReadCodeTemplate(string templateName) {402 using (var stream = Assembly.GetAssembly(this.GetType()).GetManifestResourceStream(templateName))403 using (var reader = new StreamReader(stream)) {404 return reader.ReadToEnd();405 }406 }407 #endregion408 399 } 409 400 } -
branches/OptimizationNetworks/HeuristicLab.Networks/3.3/Programmable/ProgrammableNode.cs
r11712 r12944 61 61 62 62 protected override string CodeTemplate { 63 get { return ReadCodeTemplate("HeuristicLab.Networks.Programmable.ProgrammableNodeCode.cs"); }63 get { return CodeResources.ProgrammableNodeCode; } 64 64 } 65 65
Note: See TracChangeset
for help on using the changeset viewer.