Click here to Skip to main content
15,893,663 members
Articles / Desktop Programming / Windows Forms

LocaleManager - A Practical Tool to Manage Resources Files of Different Locales for Java/Flex and .NET

Rate me:
Please Sign up or sign in to vote.
4.82/5 (4 votes)
2 Aug 2009CPOL6 min read 39.5K   624   24  
Implementation of a software tool in C# to help to manage *.resx files for .NET or *.properties files for Java or AS3 of different locales.
namespace LocaleManager
{
    partial class WorkSheetForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.m_grid = new System.Windows.Forms.DataGridView();
            this.m_files = new System.Windows.Forms.ComboBox();
            this.m_menu = new System.Windows.Forms.MenuStrip();
            this.m_save = new System.Windows.Forms.ToolStripMenuItem();
            ((System.ComponentModel.ISupportInitialize)(this.m_grid)).BeginInit();
            this.m_menu.SuspendLayout();
            this.SuspendLayout();
            // 
            // m_grid
            // 
            this.m_grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
            this.m_grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.m_grid.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_grid.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
            this.m_grid.Location = new System.Drawing.Point(0, 24);
            this.m_grid.Name = "m_grid";
            this.m_grid.Size = new System.Drawing.Size(692, 336);
            this.m_grid.TabIndex = 0;
            this.m_grid.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.m_grid_CellValueChanged);
            // 
            // m_files
            // 
            this.m_files.FormattingEnabled = true;
            this.m_files.Location = new System.Drawing.Point(167, 0);
            this.m_files.Name = "m_files";
            this.m_files.Size = new System.Drawing.Size(223, 21);
            this.m_files.TabIndex = 1;
            this.m_files.SelectedIndexChanged += new System.EventHandler(this.m_files_SelectedIndexChanged);
            // 
            // m_menu
            // 
            this.m_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.m_save});
            this.m_menu.Location = new System.Drawing.Point(0, 0);
            this.m_menu.Name = "m_menu";
            this.m_menu.Size = new System.Drawing.Size(692, 24);
            this.m_menu.TabIndex = 3;
            this.m_menu.Text = "menuStrip1";
            // 
            // m_save
            // 
            this.m_save.Name = "m_save";
            this.m_save.Size = new System.Drawing.Size(88, 20);
            this.m_save.Text = "Save Changes";
            this.m_save.Click += new System.EventHandler(this.saveChangesToolStripMenuItem_Click);
            // 
            // WorkSheetForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(692, 360);
            this.Controls.Add(this.m_files);
            this.Controls.Add(this.m_grid);
            this.Controls.Add(this.m_menu);
            this.MainMenuStrip = this.m_menu;
            this.Name = "WorkSheetForm";
            this.Text = "WorkSheetForm";
            this.Load += new System.EventHandler(this.WorkSheetForm_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.WorkSheetForm_FormClosing);
            ((System.ComponentModel.ISupportInitialize)(this.m_grid)).EndInit();
            this.m_menu.ResumeLayout(false);
            this.m_menu.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.DataGridView m_grid;
        private System.Windows.Forms.ComboBox m_files;
        private System.Windows.Forms.MenuStrip m_menu;
        private System.Windows.Forms.ToolStripMenuItem m_save;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States

Comments and Discussions