예제 #1
0
        public override bool Execute(object param, object data)
        {
            MainForm form = param as MainForm;

            if (form == null)
            {
                return(false);
            }
            foreach (DockContent item in form.DockPanel.Contents)
            {
                if (item is DesignForm)
                {
                    item.Activate();
                    return(true);
                }
            }
            DesignForm role = new DesignForm(form);

            role.Show(form.DockPanel, DockState.Document);
            role.Activate();
            return(true);
        }