public void AddGridToTab(OsirtGridView grid, string tabName) { var tab = new AuditTab(tabName); tab.Controls.Add(grid); uiAuditLogTabControl.TabPages.Add(tab); }
private void CreateTabs() { foreach (KeyValuePair <string, string> tab in tabs) { AuditTab auditTab = new AuditTab(tab.Key, tab.Value); uiAuditLogTabControl.TabPages.Add(auditTab); } //Working on adding a complete audit log tab, including notes }
private void CreateTabs() { foreach(KeyValuePair<string,string> tab in tabs) { AuditTab auditTab = new AuditTab(tab.Key, tab.Value); uiAuditLogTabControl.TabPages.Add(auditTab); } //Working on adding a complete audit log tab, including notes }
private void TabbedAuditLog_TabChanged(object sender, EventArgs e) { uiPageNumberLabel.Text = tabbedAuditLog.CurrentTab.PagesLeftDescription(); AuditTab tab = (AuditTab)sender; if (tab.Text != "Complete") { uiNextPageButton.Visible = true; uiPreviousPageButton.Visible = true; NextPage(); PreviousPage(); } else { uiNextPageButton.Visible = false; uiPreviousPageButton.Visible = false; } }