private void AddInboundTabPage(InboundQTabPage tabPage) { try { xtraTabCntrlInboundDocs.TabPages.Add(tabPage); if (tabPage.Text.Equals(DEFAULTDOCS)) { defaultInboundPanel = tabPage.InboundQPnl; } else if (tabPage.Text.Equals(DISCARDEDDOCS)) { discardedInboundPanel = tabPage.InboundQPnl; } else if (tabPage.Text.Equals(IGNOREDDOCS)) { ignoredDocsPanel = tabPage.InboundQPnl; } } catch (Exception ex) { //throw ex; throw new Exception("An error occurred while setting up the Inbound Tab page: " + tabPage.Name + "." + Environment.NewLine + "Error CNF-433 in " + FORM_NAME + ".AddInboundTabPage(): " + ex.Message); } }
private void AddInboundDocQPnl(string caption) { try { //InboundQTabPage tabPage = new InboundQTabPage(caption, ref inboundWebServices, p_UserId); var tabPage = new InboundQTabPage(sqlConnectionString, caption, p_UserId); tabPage.InboundQPnl.CptyLkupTable = masterDataSet.Tables[BDTACPTYLKUP]; tabPage.InboundQPnl.PrintDocumentDelegate = PrintInboundDoc; tabPage.InboundQPnl.ViewAssDocsByInbDocIdDelegate = SetInboundDocIdFilterValue; tabPage.InboundQPnl.SubmitEditRqmtDelegate = SubmitEditRqmtFromInbound; tabPage.InboundQPnl.IsDocumentEdited = IsDocumentEdited; AddInboundTabPage(tabPage); } catch (Exception ex) { //throw ex; throw new Exception("An error occurred while setting up the Inbound Tab for: " + caption + "." + Environment.NewLine + "Error CNF-432 in " + FORM_NAME + ".AddInboundDocQPnl(): " + ex.Message); } }