public void AddGridToTab(OsirtGridView grid, string tabName)
        {
            var tab = new AuditTab(tabName);
            tab.Controls.Add(grid);

            uiAuditLogTabControl.TabPages.Add(tab);
        }
 private void AddCompleteAuditTrail()
 {
     OsirtGridView grid = new OsirtGridView();
     grid.RowEntered += Grid_RowEntered;
     grid.DataSource = new DatabaseHandler().GetAllDatabaseData();
     grid.Dock = DockStyle.Fill;
     auditTabControlPanel.AddGridToTab(grid, "Complete");
 }
Example #3
0
        public void AddGridToTab(OsirtGridView grid, string tabName)
        {
            var tab = new AuditTab(tabName);

            tab.Controls.Add(grid);

            uiAuditLogTabControl.TabPages.Add(tab);
        }
Example #4
0
        private void AddCompleteAuditTrail()
        {
            OsirtGridView grid = new OsirtGridView();

            grid.RowEntered += Grid_RowEntered;
            grid.DataSource  = new DatabaseHandler().GetAllDatabaseData();
            grid.Dock        = DockStyle.Fill;
            auditTabControlPanel.AddGridToTab(grid, "Complete");
        }
Example #5
0
        private void UpdateSearchResults(DataTable table, string tableToSearch)
        {
            uiAuditLogSplitContainer.Panel2.Controls.Clear();
            uiBackToAuditLogToolStripButton.Enabled = true;

            if (table == null)
            {
                uiAuditLogSplitContainer.Panel2.Controls.Add(new TempSearchPanel("No results to display. Please search another term."));
            }
            else
            {
                table.TableName = tableToSearch;
                OsirtGridView grid = new OsirtGridView(table.TableName);
                grid.RowEntered += Grid_RowEntered;
                grid.DataSource  = table;
                grid.Dock        = DockStyle.Fill;
                uiAuditLogSplitContainer.Panel2.Controls.Add(grid);
            }
        }
Example #6
0
        private void AddCompleteAuditTrail()
        {
            //Complete tab
            completeGridView             = new OsirtGridView();
            completeGridView.RowEntered += Grid_RowEntered;

            //lazy loading commented out. Partially works, but misses last few records which is probably down to the limit variable
            //need a closer look

            //completeGridView.Scroll += CompleteGridView_Scroll;
            //dt = new DatabaseHandler().GetAllDatabaseData();
            //foreach(DataColumn c in dt.Columns)
            //{
            //    temp.Columns.Add(c.ColumnName, c.DataType);
            //}
            completeGridView.DataSource = new DatabaseHandler().GetAllDatabaseData();
            completeGridView.Dock       = DockStyle.Fill;
            auditTabControlPanel.AddGridToTab(completeGridView, "Complete");
            //AddRows();
        }
        private void UpdateSearchResults(DataTable table, string tableToSearch)
        {
            uiAuditLogSplitContainer.Panel2.Controls.Clear();
            uiBackToAuditLogToolStripButton.Enabled = true;

            if (table == null)
            {
                uiAuditLogSplitContainer.Panel2.Controls.Add(new TempSearchPanel("No results to display. Please search another term."));
            }
            else
            {
                table.TableName = tableToSearch;
                OsirtGridView grid = new OsirtGridView(table.TableName);
                grid.RowEntered += Grid_RowEntered;
                grid.DataSource = table;
                grid.Dock = DockStyle.Fill;
                uiAuditLogSplitContainer.Panel2.Controls.Add(grid);
            }
        }
Example #8
0
 public void AddGridToTab(OsirtGridView grid, string tabName)
 {
     tabbedAuditLog.AddGridToTab(grid, tabName);
 }
 public void AddGridToTab(OsirtGridView grid, string tabName)
 {
     tabbedAuditLog.AddGridToTab(grid, tabName);
 }