public void OnShowMembershipRoleList(object sender, EventArgs e) { WindowSmartPartInfo spi = new WindowSmartPartInfo(); spi.Title = "角色管理"; ShowViewInWorkspace<MembershipRoleListView>(SmartPartNames.MembershipRoleListView, UIExtensionSiteNames.Shell_Workspace_Main, spi); }
/// <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(); }
/// <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); } }
public void OnShowUpgradeBuilder(object sender, EventArgs e) { WindowSmartPartInfo spi = new WindowSmartPartInfo(); spi.Title = "创建升级包"; ShowViewInWorkspace<UpgradeBuilderView>("UpgradeBuilder", UIExtensionSiteNames.Shell_Workspace_Main, spi); }