public VirtualInputRuntimeMenu(VirtualInputRuntimeDialog dialog) { Dialog = dialog; (EditMenu = new ToolStripMenuItem(Language.Language.Program_Edit_Button)).Click += EditMenu_Click; (AddMenu = new ToolStripMenuItem(Language.Language.Program_Add_Button)).Click += AddMenu_Click; _menus = new ToolStripItem[] { AddMenu, EditMenu }; }
public VirtualInputRuntime() { Dialog = new VirtualInputRuntimeDialog(); Menu = new VirtualInputRuntimeMenu((VirtualInputRuntimeDialog)Dialog); }