Exemplo n.º 1
0
        private void commandMore_Execute(object sender, EventArgs ea)
        {
            using (DynamicCommandMenuOverflowForm form = new DynamicCommandMenuOverflowForm(Context.GetMenuCommandObjects()))
            {
                // configure the title bar
                form.Text = Context.Options.MoreCommandsDialogTitle;

                // show the form
                using (new WaitCursor())
                {
                    DialogResult result = form.ShowDialog();
                    if (result == DialogResult.OK)
                    {
                        Context.CommandExecuted(form.SelectedObject);
                    }
                }
            }
        }
        private void commandMore_Execute(object sender, EventArgs ea)
        {
            using (DynamicCommandMenuOverflowForm form = new DynamicCommandMenuOverflowForm(Context.GetMenuCommandObjects()))
            {
                // configure the title bar
                form.Text = Context.Options.MoreCommandsDialogTitle;

                // show the form
                using (new WaitCursor())
                {
                    DialogResult result = form.ShowDialog();
                    if (result == DialogResult.OK)
                        Context.CommandExecuted(form.SelectedObject);
                }
            }
        }