• 大小: 0.11M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: winform  多语言  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Resources;
using System.Globalization;
using System.Threading;

namespace MyMutilLanguage1
{
  public partial class Form1 : Form
  {
    public Form1()
    {
      InitializeComponent();
      this.ApplyResource();//默认设置
    }
    private string strResourcePath = Application.StartupPath + “//Resource“;//寻找放资源文件的路径
    private string defaultCulture = “zh-CN“;//默认使用中文
    private static ResourceManager rm;
    public void ApplyResource()
    {
      this.SetCulture();
      this.SetResource();
      this.SetUIChange();
    }
    /// 

    /// 设置区域语言设置
    ///

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-08-02 15:39  Mutil-LanguageSourceCode\
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\
     文件       10752  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\MyMutilLanguage1.exe
     文件       30208  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\MyMutilLanguage1.pdb
     文件       11600  2013-08-02 15:38  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\MyMutilLanguage1.vshost.exe
     文件         490  2010-03-17 22:39  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\MyMutilLanguage1.vshost.exe.manifest
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\Resource\
     文件         390  2013-08-02 13:21  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\Resource\resource.en-US.resources
     文件         387  2013-08-02 13:21  Mutil-LanguageSourceCode\MyMutilLanguage1\bin\Debug\Resource\resource.zh-CN.resources
     文件        2320  2013-08-02 14:54  Mutil-LanguageSourceCode\MyMutilLanguage1\Form1.cs
     文件        6212  2013-08-02 13:33  Mutil-LanguageSourceCode\MyMutilLanguage1\Form1.Designer.cs
     文件        5817  2013-08-02 13:33  Mutil-LanguageSourceCode\MyMutilLanguage1\Form1.resx
     文件        3691  2013-08-02 13:44  Mutil-LanguageSourceCode\MyMutilLanguage1\MyMutilLanguage1.csproj
     文件         227  2013-08-02 13:44  Mutil-LanguageSourceCode\MyMutilLanguage1\MyMutilLanguage1.csproj.user
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\
     目录           0  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\
     文件        2164  2013-08-02 10:37  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6329  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         754  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\GenerateResource.read.1.tlog
     文件        1778  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\GenerateResource.write.1.tlog
     文件        2087  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\MyMutilLanguage1.csproj.FileListAbsolute.txt
     文件       10752  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\MyMutilLanguage1.exe
     文件         180  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\MyMutilLanguage1.Form1.resources
     文件       30208  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\MyMutilLanguage1.pdb
     文件         180  2013-08-02 15:39  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\MyMutilLanguage1.Properties.Resources.resources
     目录           0  2013-08-02 10:37  Mutil-LanguageSourceCode\MyMutilLanguage1\obj\x86\Debug\TempPE\
     文件         456  2013-08-02 10:37  Mutil-LanguageSourceCode\MyMutilLanguage1\Program.cs
     目录           0  2013-08-02 15:37  Mutil-LanguageSourceCode\MyMutilLanguage1\Properties\
............此处省略49个文件信息

评论

共有 条评论