Ejemplo n.º 1
0
        public void OnShowDatabaseModule(object sender, EventArgs e)
        {
            WindowSmartPartInfo spi = new WindowSmartPartInfo();
            spi.Title = "数据服务演示";

            ShowViewInWorkspace<DatabaseView>("DatabaseView", UIExtensionSiteNames.Shell_Workspace_Main, spi);
        }
Ejemplo n.º 2
0
        public void OnShowSampleView(object sender, EventArgs e)
        {
            WindowSmartPartInfo spi = new WindowSmartPartInfo();
            spi.Title = "基本功能演示";

            ShowViewInWorkspace<SampleView>("SampleView", UIExtensionSiteNames.Shell_Workspace_Main, spi);
        }
        public void OnShowAuthorizationStore(object sender, EventArgs e)
        {
            WindowSmartPartInfo spi = new WindowSmartPartInfo() { 
                Title = "权限管理"
            };

            ShowViewInWorkspace<AuthorizationStoreListView>(SmartPartNames.AuthorizationStoreListView, UIExtensionSiteNames.Shell_Workspace_Main, spi);
        }
        public void OnShowCommandView(object sender, EventArgs e)
        {
            WindowSmartPartInfo spi = new WindowSmartPartInfo() { 
                Title = "操作列表"
            };

            ShowViewInWorkspace<CommandListView>(SmartPartNames.AuthorizationCommandListView, UIExtensionSiteNames.Shell_Workspace_Main, spi);
        }
Ejemplo n.º 5
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 smartPartInfo)
        {
            Form mdiChild = this.GetOrCreateForm(smartPart);
            mdiChild.MdiParent = parentMdiForm;

            this.SetWindowProperties(mdiChild, smartPartInfo);
            mdiChild.Show();
            this.SetWindowLocation(mdiChild, smartPartInfo);
            mdiChild.BringToFront();
        }