private void frmConverter_Load(object sender, EventArgs e) { Icon = Resources.kukkii; // Tools CompressionTools.LoadCompressionTools(compressionToolStripMenuItem); EncryptionTools.LoadEncryptionTools(encryptionToolStripMenuItem); HashTools.LoadHashTools(hashToolStripMenuItem); // Image Border Styles tsbImageBorderStyle.DropDownItems.AddRange(Enum.GetNames(typeof(ImageBoxBorderStyle)).Select(s => new ToolStripMenuItem { Image = (Image)Resources.ResourceManager.GetObject(_stylesImages[s]), Text = _stylesText[s], Tag = s }).ToArray()); foreach (var tsb in tsbImageBorderStyle.DropDownItems) { ((ToolStripMenuItem)tsb).Click += tsbImageBorderStyle_Click; } UpdateForm(); UpdatePreview(); }