/// <summary>
        /// Shows the form as a child of the specified <see cref="ParentMdiForm"/>.
        /// </summary>
        /// <param name="smartPart">The <see cref="Control"/> to show in the workspace.</param>
        /// <param name="smartPartInfo">The information to use to show the smart part.</param>
        protected override void OnShow(Control smartPart, XtraWindowSmartPartInfo spi)
        {
            Form child = GetOrCreateForm(smartPart);
            child.MdiParent = parentMdiForm;

            SetWindowProperties(child, spi);
            child.Show();
            child.BringToFront();
        }
        /// <summary>
        /// 为角色选择成员
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            XtraWindowSmartPartInfo spi = new XtraWindowSmartPartInfo() { 
                MaximizeBox = false,
                MinimizeBox = false,
                Modal = true,
                FormBorderStyle = FormBorderStyle.FixedDialog,
                StartPosition = FormStartPosition.CenterParent,
                Title = "选择成员"
            };

            Presenter.ShowViewInWorkspace<MembershipUserChoiseView>(SmartPartNames.MembershipUserChoiseView, 
                UIExtensionSiteNames.Shell_Workspace_Window, spi);
            RefreshCurrentRole((string)WorkItem.State[Constants.CurrentRole]); // 刷新当前角色下的成员
        }
        public void OnUniframeworkSetting(object sender, EventArgs e)
        {
            SettingView view = WorkItem.SmartParts.Get<SettingView>(SmartPartNames.SmartPart_Shell_SettingView);
            if (view == null)
                view = WorkItem.SmartParts.AddNew<SettingView>(SmartPartNames.SmartPart_Shell_SettingView);

            XtraWindowSmartPartInfo spi = new XtraWindowSmartPartInfo
            {
                Title = "选项",
                MaximizeBox = false,
                MinimizeBox = false,
                StartPosition = FormStartPosition.CenterParent,
                FormBorderStyle = FormBorderStyle.FixedDialog,
                Modal = true,
                Icon = ImageService.GetIcon("preferences", new System.Drawing.Size(16, 16))
            };
            IWorkspace wp = new XtraWindowWorkspace();
            wp.Show(view, spi);
        }