public ResourceGroupTabPage AddTab(PBIProvisioningContext context) { var page = new ResourceGroupTabPage(new MigrationTabForm(context)); AddPage(page, context.DisplayName); return(page); }
private void AddPage(ResourceGroupTabPage page, string displayText) { this.tabControlMain.TabPages.Add(page); page.Text = displayText; this.tabControlMain.SelectedIndex = this.tabControlMain.TabCount - 1; page.BackColor = Color.PowderBlue; }
public ResourceGroupTabPage AddTab(MigrationPlan migrationPlan, string migrationPlanFilePath) { var tabForm = new MigrationTabForm(migrationPlan, migrationPlanFilePath); var page = new ResourceGroupTabPage(tabForm); AddPage(page, tabForm.DisplayName); return(page); }