/// <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(); }
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(); }