Esempio n. 1
0
//        [Test]
        public void TestDaysToHtml()
        {
            Sqlite sqlite = Sqlite.LoadFromFile();

            SqlCurrentUser = "******";
            List <Day> days = sqlite.DaysInRange(StartEndWeek(DateTime.Now)[0], StartEndWeek(DateTime.Now)[1]);

            File.WriteAllText(@"C:\Users\Wendall Martin\Desktop\TimeReport.html", HtmlTimeReporter.DaysToHtml(days));
        }
Esempio n. 2
0
        private void BtnTotalTimeClick(object sender, RoutedEventArgs e)
        {
            PrevEmailWin emailOrPreview = new PrevEmailWin();

            emailOrPreview.ShowDialog();

            ResultValue result = emailOrPreview.Result;

            switch (result)
            {
            case ResultValue.Email:
                HtmlTimeReporter.OnEmailWeek(_baseDate);
                break;

            case ResultValue.Prev:
                HtmlTimeReporter.OnPreviewWeek(_baseDate);
                break;
            }
        }