public override void Login(object sender, EventArgs e) { GradientMenuStrip menu = (GradientMenuStrip)FormWrapper.Find("mainMenu"); ToolStripMenuItem communityMenu = new ToolStripMenuItem("Community Menu"); ToolStripMenuItem item = menu.Items[0] as ToolStripMenuItem; item.DropDownItems.Insert(0, communityMenu); communityMenu.DropDownItems.AddRange(GetDropDownItems()); }
private void RefreshPipeline() { MainScreen mainScreen = FormWrapper.Find("mainScreen") as MainScreen; mainScreen.PipelineScreenBrowser = null; IPipeline pipeline = mainScreen.GetService <EllieMae.EMLite.Common.UI.IPipeline>(); mainScreen.ShowTab("Home"); mainScreen.ShowTab("Pipeline"); }
private void btnReport_Click(object sender, EventArgs e) { ResetGrid(); gpReportControls.Visible = true; ReportMainControl r = (ReportMainControl)FormWrapper.Find("ReportMainControl"); if (r == null) { MessageBox.Show("Please Open the Report tab and select a report."); return; } FileSystemEntry f = (FileSystemEntry)r.GetType().GetField("currentFile", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(r); if (f == null) { MessageBox.Show("Issue finding selected Report."); return; } Sessions.Session sesh = Session.DefaultInstance; FSExplorer rptExplorer = new FSExplorer(sesh); r = new ReportMainControl(sesh, false); ReportIFSExplorer ifs = new ReportIFSExplorer(r, sesh); ReportSettings settings = sesh.ReportManager.GetReportSettings(f); if (settings.Columns.Count() < 2) { MessageBox.Show("Please enter two fields and save your report."); return; } string firstColID = settings.Columns.FirstOrDefault().FieldID; if (!firstColID.Equals("GUID") && !firstColID.Equals("364")) { MessageBox.Show("The first field of your report must be Loan Number or GUID"); return; } LoanReportParameters parameters = new LoanReportParameters(); parameters.Fields.AddRange(settings.Columns); parameters.FieldFilters.AddRange(settings.Filters); parameters.UseDBField = settings.UseFieldInDB; parameters.UseDBFilter = settings.UseFilterFieldInDB; parameters.UseExternalOrganization = settings.forTPO; parameters.CustomFilter = CreateLoanCustomFilter(settings); ReportResults results = sesh.ReportManager.QueryLoansForReport(parameters, null); List <string[]> data = results.GetAllResults(); dgvData.Columns.AddRange(parameters.Fields.Select(x => new DataGridViewTextBoxColumn() { HeaderText = x.FieldID }).ToArray()); dgvData.Rows.Add(data.Count); for (int i = 0; i < data.Count; i++) { for (int ii = 0; ii < data[i].Count(); ii++) { dgvData.Rows[i].Cells[ii].Value = data[i][ii]; } } dgvData.CellValueChanged -= dgvData_CellValueChanged; dgvData.CellValueChanged += dgvData_CellValueChanged; }