public MainForm() { InitializeComponent(); WorkingDialog wd = new WorkingDialog(); wd.Show(); listFiles.AfterLabelEdit += new LabelEditEventHandler(listFiles_AfterLabelEdit); listFiles.MouseDoubleClick += new MouseEventHandler(listFiles_MouseDoubleClick); listFiles.MouseClick += new MouseEventHandler(listFiles_MouseClick); textAddress.KeyUp += new KeyEventHandler(textAddress_OnKey); textAddress.GotFocus += new EventHandler(textAddress_GotFocus); InitLanguageFilesAndFillLanguageMenu();//fill language menu ChangeMenuAndToolbarStatus(); I18N.LoadLanguage(); FillList(); UpdateLanguage(); listFiles.SmallImageList = smallIcon; listFiles.LargeImageList = largeIcon; smallIcon.ColorDepth = ColorDepth.Depth32Bit; largeIcon.ColorDepth = ColorDepth.Depth32Bit; smallIcon.ImageSize = new Size(16, 16); largeIcon.ImageSize = new Size(48, 48); Log.CleanLog(); }
private void languageSubMenuToolStripMenuItem_Click(object sender, EventArgs e) { ToolStripMenuItem t = (ToolStripMenuItem)sender; Properties.Settings.Default.Language = t.Tag.ToString(); I18N.LoadLanguage(); UpdateLanguage(); Properties.Settings.Default.IsUserSetLanguage = true; Properties.Settings.Default.Save(); }