/// <summary> /// Generate the Admin view (smart part). /// </summary> /// <param name="parentWorkspace">Tab workspace.</param> public void Generate(IWorkspace parentWorkspace) { // TabSmartPart _smartPart = new TabSmartPartInfo(); _smartPart.Title = "Admin"; _smartPart.ActivateTab = false; _adminView = this.SmartParts.AddNew <AdminView>(); this.Workspaces["DrinksDistributorWorkspace"].Show(_adminView, _smartPart); _adminView.LoadCoinStocks(); this.Activate(); }