public void WriteSummary(DataAccessLayer DAL)
        {
            HowAmIDoingOptions options = new HowAmIDoingOptions(DAL);
            HowAmIDoingLogic logic = new HowAmIDoingLogic(options);

            options.TtFilePath = System.IO.Path.GetFileName(Values.CurrentTtFileName);
            options.ReportPath = String.Format("{0}\\{1}_Sumary.txt", SelectedPath,
                Values.Settings.ProjectOptions.ProjectName);
            options.SaveReport = true;
            options.PopulateFromDataLayer();

            logic.Execute();

            //using (StreamWriter sw = new StreamWriter(SelectedPath + "\\" +
            //    Values.Settings.ProjectOptions.ProjectName + "_Summary.txt"))
            //{
            //    sw.WriteLine(options.ReportText.ToString());
            //}
        }
 public HowAmIDoingForm(HowAmIDoingLogic logic, HowAmIDoingOptions options)
 {
     InitializeComponent();
     _logic = logic;
     _options = options;
 }
        private void btnHowAmIDoing_Click2(object sender, EventArgs e)
        {
            HowAmIDoingOptions options = new HowAmIDoingOptions(data);
            HowAmIDoingLogic logic = new HowAmIDoingLogic(options);

            options.PopulateFromDataLayer();
            options.TtFilePath = System.IO.Path.GetFileName(_FileName);
            options.SaveReport = false;

            using (HowAmIDoingForm form = new HowAmIDoingForm(logic, options))
            {
                DialogResult res = form.ShowDialog();
            }
        }