Пример #1
0
        /// <summary>
        /// Generate the Client view (smart part).
        /// </summary>
        /// <param name="parentWorkspace">Tab workspace.</param>
        public void Generate(IWorkspace parentWorkspace)
        {
            // TabSmartPart
            _smartPart             = new TabSmartPartInfo();
            _smartPart.Title       = "Client";
            _smartPart.ActivateTab = true;

            _clientView = this.SmartParts.AddNew <ClientView>();
            this.Workspaces["DrinksDistributorWorkspace"].Show(_clientView, _smartPart);

            _clientView.LoadDrinks();

            this.Activate();
        }