コード例 #1
0
ファイル: MainForm.cs プロジェクト: pedgarcia/Emudisk
        /// <summary>
        /// Initializes a new instance of the <see cref="MainForm"/> class.
        /// This is the default constructor.
        /// </summary>
        public MainForm()
        {
            resourceManager = new ResourceManager("EmuDisk.Resource.Res", typeof(MainForm).Assembly);
            this.InitializeComponent();
            string currentCulture = CultureInfo.CurrentCulture.TwoLetterISOLanguageName;

            foreach (ToolStripMenuItem item in this.languageToolStripMenuItem.DropDownItems)
            {
                if (item.Tag.ToString() == currentCulture)
                {
                    item.Checked = true;
                    this.SetLanguage(currentCulture);
                    break;
                }
            }

            if (cultureInfo == null)
            {
                this.SetLanguage("en");
            }

            this.mruManager = new MRUManager();
            this.mruManager.Initialize(this, this.recentFilesToolStripMenuItem, RegistryPath);
            this.physicalDriveToolStripMenuItem.Enabled = driverInstalled;
            this.UpdateMenu();
        }
コード例 #2
0
        public MainForm()
        {
            resourceManager = new ResourceManager("EmuDisk.Resource.Resource", typeof(MainForm).Assembly);
            this.InitializeComponent();
            string currentCulture = CultureInfo.CurrentCulture.TwoLetterISOLanguageName;

            if (cultureInfo == null)
            {
                this.SetLanguage("en");
            }

            this.mruManager = new MRUManager();
            this.mruManager.Initialize(this, this.mnuFileRecentFiles, RegistryPath);
            this.mnuFilePhysicalDrive.Enabled = driverInstalled;
            this.UpdateMenu();
        }