Resource file generator : ResourceWriter : GUI Windows Form C# Source Code


Custom Search

C# Source Code » GUI Windows Form » ResourceWriter »

 

Resource file generator








    



using System;
using System.Resources;
class LanguageResourceWriter {
    public static void WriteEnglishResources() {
        ResourceWriter rw = new ResourceWriter("Eng.resources");
        rw.AddResource("Greeting", "Hello");
        rw.AddResource("Program Name", "AAA");
        rw.AddResource("Author", "T");

        rw.Close();
    }
    public static void WriteSpanishResources() {
        ResourceWriter rw = new ResourceWriter("Span.resources");
        rw.AddResource("Greeting", "Hola");
        rw.AddResource("Program Name", "BBB");
        rw.AddResource("Author", "FFF");

        rw.Close();
    }
    public static void WriteFrenchResources() {
        ResourceWriter rw = new ResourceWriter("French.resources");
        rw.AddResource("Greeting", "Bonjour");
        rw.AddResource("Program Name", "DDD");
        rw.AddResource("Author", "EEE");

        rw.Close();
    }

    public static void Main() {
        WriteEnglishResources();
        WriteSpanishResources();
        WriteFrenchResources();
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo GUI Windows Form
» ResourceWriter