public Dashboard(MainWindow maw, String name) { InitializeComponent(); mw = maw; file_loaded = name; ToolStripManager.Renderer = new Office2007Renderer.Office2007Renderer(); toolStrip2.Renderer = new Office2007Renderer.Office2007Renderer(); toolStrip3.Renderer = new Office2007Renderer.Office2007Renderer(); findPosition.Clear(); foreach (FontFamily font in System.Drawing.FontFamily.Families) { toolStripComboBox1.Items.Add(font.Name.ToString()); } for (int i = 5; i <= 90; i++) { fontSizeCmb.Items.Add(i); } toolStripComboBox1.SelectedItem = "Arial"; fontSizeCmb.SelectedItem = 12; section_name = setDocumentList().Find(item => item.DocumentName == name).ItemName; secIns = new SectionInstructions(); loadSample(section_name); this.setContentInitial(file_loaded); this.richTextBox1.SelectionFont = new Font("Arial", 12, this.richTextBox1.SelectionFont.Style); this.richTextBox1.ZoomFactor = 1.0f; toolStripComboBox2.SelectedIndex = 2; dgp = new DocumentProgressor(); if (WorkProgress.workItems.Exists(x => x.filename == file_loaded)) { label2.Text = "Unsaved"; } }
public AnalysisWindow(MainWindow maw) { InitializeComponent(); mw = maw; dgp = new DocumentProgressor(); secIns = new SectionInstructions(); instruction_box.Text = secIns.instructionItems.FirstOrDefault(x => x.section == "Analysis Table").instruction; if (File.Exists(ProjectConfig.projectPath + "\\data.xls")) { ExcelReader excelReader = new ExcelReader(); excelReader.readExcelToDataGridView(dataGridView1, "Market Analysis"); } }
public FinancialWindow(MainWindow maw) { InitializeComponent(); mw = maw; dgp = new DocumentProgressor(); saveBt.Left = (saveBt.Parent.Width - saveBt.Width) / 2; secIns = new SectionInstructions(); instruction_box.Text = secIns.instructionItems.FirstOrDefault(x => x.section == "Financial Statement").instruction; try { fetchAllData(); generateStatement(); } catch { MessageBox.Show("Unable to fetch data !"); } }