public EmulatorConfigurationDialog(EmulatorConfiguration config) { this.config = config; InitializeComponent(); var propertiesItem = new ToolStripMenuItem { Text = "Properties" }; propertiesItem.Click += PropertiesItem_Click; contextMenuStrip = new ContextMenuStrip(); contextMenuStrip.Items.Add(propertiesItem); packages.MouseDown += Packages_MouseDown; message.Text = String.Format(message.Text, config.GetName()); }