/// <summary>
        /// Usage sample for the CABDevExpress.Extension Kit DockManagerWorkspace
        /// </summary>
        /// <param name="dockWorkspace"></param>
        public void Show(IWorkspace dockWorkspace)
        {
            var info = new DockManagerSmartPartInfo {
                Name = "Statistics", Dock = DockingStyle.Right
            };

            SmartParts.AddNew <StatisticsBarView>(DockableStatisticsView);
            dockWorkspace.Show(SmartParts[DockableStatisticsView], info);
        }
        private void AddShowNavBarGroups(IWorkspace navbarWorkspace)
        {
            SmartParts.AddNew <UserInfoView>("UserInfo");               //named because it will be used in a placeholder
            var customerView      = SmartParts.AddNew <CustomerView>();
            var statisticsBarView = SmartParts.AddNew <StatisticsBarView>(SmartPartNames.Statistics);

            var customerInfo = new XtraNavBarGroupSmartPartInfo
            {
                Title      = "Customers",
                LargeImage = Resources.customersLarge,
                SmallImage = Resources.customersSmall
            };

            var statsInfo = new XtraNavBarGroupSmartPartInfo
            {
                Title      = "Statistics",
                LargeImage = Resources.statsLarge,
                SmallImage = Resources.statsSmall
            };

            navbarWorkspace.Show(customerView, customerInfo);
            navbarWorkspace.Show(statisticsBarView, statsInfo);
        }
        /// <summary>
        /// Usage sample for the CABDevExpress.Extension Kit XtraWindowWorkspace and XtraWindowSmartPartInfo
        /// the example shows an 'About Dialog'
        /// </summary>
        private void ShowHelpAbout()
        {
            if (!SmartParts.Contains(SmartPartNames.HelpAbout))
            {
                SmartParts.AddNew <AboutBankTellerView>(SmartPartNames.HelpAbout);
            }

            var smartPartInfo = new XtraWindowSmartPartInfo
            {
                Modal           = true,
                StartPosition   = FormStartPosition.CenterParent,
                FormBorderStyle = FormBorderStyle.FixedDialog,
                MinimizeBox     = false,
                MaximizeBox     = false,
                Height          = 150,
                Width           = 350,
                Title           = "About"
            };

            // the two properties added by CABDevExpress.ExtensionKit's XtraWindowSmartPartInfo
            var xtraWindow = new XtraWindowWorkspace();

            xtraWindow.Show(SmartParts[SmartPartNames.HelpAbout], smartPartInfo);
        }