diff --git a/Source/Examples/Resources.Designer.cs b/Source/Examples/Resources.Designer.cs new file mode 100644 index 00000000..4617d3ff --- /dev/null +++ b/Source/Examples/Resources.Designer.cs @@ -0,0 +1,89 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.312 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Examples { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.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() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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("Examples.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Waiting for the Barbarians + ///What are we waiting for, assembled in the forum? + /// + ///The barbarians are to arrive today. + /// + ///Why such inaction in the Senate? + ///Why do the Senators sit and pass no laws? + /// + ///Because the barbarians are to arrive today. + ///What laws can the Senators pass any more? + ///When the barbarians come they will make the laws. + /// + ///Why did our emperor wake up so early, + ///and sits at the greatest gate of the city, + ///on the throne, solemn, wearing the crown? + /// + ///Because the barbarians are to arrive today. + /// [rest of string was truncated]";. + /// + internal static string Poem { + get { + return ResourceManager.GetString("Poem", resourceCulture); + } + } + } +} diff --git a/Source/Examples/Resources.resx b/Source/Examples/Resources.resx new file mode 100644 index 00000000..2ad4fd5a --- /dev/null +++ b/Source/Examples/Resources.resx @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Waiting for the Barbarians +What are we waiting for, assembled in the forum? + +The barbarians are to arrive today. + +Why such inaction in the Senate? +Why do the Senators sit and pass no laws? + +Because the barbarians are to arrive today. +What laws can the Senators pass any more? +When the barbarians come they will make the laws. + +Why did our emperor wake up so early, +and sits at the greatest gate of the city, +on the throne, solemn, wearing the crown? + +Because the barbarians are to arrive today. +And the emperor waits to receive +their chief. Indeed he has prepared +to give him a scroll. Therein he inscribed +many titles and names of honor. + +Why have our two consuls and the praetors come out +today in their red, embroidered togas; +why do they wear amethyst-studded bracelets, +and rings with brilliant, glittering emeralds; +why are they carrying costly canes today, +wonderfully carved with silver and gold? + +Because the barbarians are to arrive today, +and such things dazzle the barbarians. + +Why don't the worthy orators come as always +to make their speeches, to have their say? + +Because the barbarians are to arrive today; +and they get bored with eloquence and orations. + +Why all of a sudden this unrest +and confusion. (How solemn the faces have become). +Why are the streets and squares clearing quickly, +and all return to their homes, so deep in thought? + +Because night is here but the barbarians have not come. +And some people arrived from the borders, +and said that there are no longer any barbarians. + +And now what shall become of us without any barbarians? +Those people were some kind of solution. + +- Constantine P. Cavafy (1904) + + \ No newline at end of file