internal void GetBudgetTemplate() { try { AppSettingsReader setting = new AppSettingsReader(); string report = (string)setting.GetValue("BudgetReport", typeof(string)); BudgetReport.Open(report); } catch (Exception ex) { new Error(ex).ShowDialog(); } }
// CONSTRUCTORS public ExcelForm() { InitializeComponent(); Source = Source.DivisionAccounts; Provider = Provider.SQLite; DbData = new DataBuilder(Source, Provider); BindingSource = new BindingSource(); Table = DbData.Table; BindingSource.DataSource = Table; ProgramElements = DbData.ProgramElements; Ninja = new FormData(Source, Provider); BudgetTemplate = GetInternalFilePath(); BudgetReport.Open(BudgetTemplate); }