コード例 #1
0
        public void OnShowMembershipRoleList(object sender, EventArgs e)
        {
            WindowSmartPartInfo spi = new WindowSmartPartInfo();
            spi.Title = "角色管理";

            ShowViewInWorkspace<MembershipRoleListView>(SmartPartNames.MembershipRoleListView, UIExtensionSiteNames.Shell_Workspace_Main, spi);
        }
コード例 #2
0
        /// <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, WindowSmartPartInfo spi)
        {
            Form child = GetOrCreateForm(smartPart);
            child.MdiParent = parentMdiForm;

            SetWindowProperties(child, spi);
            child.Show();
            child.BringToFront();
        }
コード例 #3
0
        /// <summary>
        /// Gotoes the specified address.
        /// </summary>
        /// <param name="address">The address.</param>
        public void Goto(string address)
        {
            Uri uri = new Uri(address);
            WindowSmartPartInfo spi = new WindowSmartPartInfo();
            spi.Title = "我的浏览器";
            spi.WindowState = FormWindowState.Maximized;
            BrowserView view = ShowViewInWorkspace<BrowserView>(SmartPartNames.SmartPart_Shell_BrowserView,
                UIExtensionSiteNames.Shell_Workspace_Main, spi);
            Browser = view;

            try {
                view.Goto(uri);
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
            }
        }
コード例 #4
0
 public void OnShowUpgradeBuilder(object sender, EventArgs e)
 {
     WindowSmartPartInfo spi = new WindowSmartPartInfo();
     spi.Title = "创建升级包";
     ShowViewInWorkspace<UpgradeBuilderView>("UpgradeBuilder", UIExtensionSiteNames.Shell_Workspace_Main, spi);
 }