Ignore:
Timestamp:
Apr 6, 2009, 10:09:58 PM (13 years ago)
Author:
Thomas Schmid
Message:
  • added method to access resource files in plugin assembly to PluginExtension
  • added sample resource files to caesar plugin
  • still in development - do not use this method yet!
Location:
trunk/CrypPlugins/Caesar
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Caesar/Caesar.cs

    r213 r276  
    1616{
    1717    [Author("Dr. Arno Wacker", "arno.wacker@cryptool.org", "Uni Duisburg", "http://www.uni-duisburg-essen.de")]
    18     [PluginInfo(false, "Caesar", "Caesar -- classic alphabet shift substitution cipher", "Caesar/DetailedDescription/Description.xaml",
     18    [PluginInfo("Cryptool.Caesar.Resources.res", false, "Caesar", "Caesar -- classic alphabet shift substitution cipher", "Caesar/DetailedDescription/Description.xaml",
    1919      "Caesar/Images/Caesar.png", "Caesar/Images/encrypt.png", "Caesar/Images/decrypt.png")]
    2020    [EncryptionType(EncryptionType.Classic)]
  • trunk/CrypPlugins/Caesar/Caesar.csproj

    r241 r276  
    5959    <Compile Include="Caesar.cs" />
    6060    <Compile Include="CaesarSettings.cs" />
     61    <Compile Include="Resources\res.de-DE.Designer.cs">
     62      <AutoGen>True</AutoGen>
     63      <DesignTime>True</DesignTime>
     64      <DependentUpon>res.de-DE.resx</DependentUpon>
     65    </Compile>
     66    <Compile Include="Resources\res.Designer.cs">
     67      <AutoGen>True</AutoGen>
     68      <DesignTime>True</DesignTime>
     69      <DependentUpon>res.resx</DependentUpon>
     70    </Compile>
    6171    <Compile Include="Properties\AssemblyInfo.cs" />
    6272  </ItemGroup>
     
    8393    <Resource Include="Images\encrypt.png" />
    8494  </ItemGroup>
     95  <ItemGroup>
     96    <EmbeddedResource Include="Resources\res.de-DE.resx">
     97      <Generator>PublicResXFileCodeGenerator</Generator>
     98      <LastGenOutput>res.de-DE.Designer.cs</LastGenOutput>
     99    </EmbeddedResource>
     100    <EmbeddedResource Include="Resources\res.resx">
     101      <Generator>PublicResXFileCodeGenerator</Generator>
     102      <LastGenOutput>res.Designer.cs</LastGenOutput>
     103    </EmbeddedResource>
     104  </ItemGroup>
    85105  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    86106  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset for help on using the changeset viewer.