private static void DisplayOnScreen(IActivity activity) { ReadingActivity readingActivity = (ReadingActivity)activity; var DemandSessionInfo = readingActivity.DemandSession; Console.WriteLine("****** Estimate Report ****** "); Console.WriteLine(" BOOK INFO "); Console.WriteLine("-------------------------------------------"); Console.WriteLine($"\t Title = {readingActivity.Book.Title}"); Console.WriteLine($"\t Pages Need to Read = {readingActivity.Book.Pages} "); Console.WriteLine($"\t Velocity per page = {DemandSessionInfo.TimeFormat.GetVelocityTimeString()}"); Console.WriteLine(" TIME "); Console.WriteLine("-------------------------------------------"); Console.WriteLine($"\t You need to investment about = {DemandSessionInfo.TimeFormat.GetDateTimeFormat().ToLongTimeString()}"); Console.WriteLine($"\t About Hours = {DemandSessionInfo.TimeFormat.GetFractionFormat()} hrs"); Console.WriteLine($"\t About Minutes = {DemandSessionInfo.TimeFormat.GetTimeInMinutes()} minutes"); Console.WriteLine(" \n POMODORO "); Console.WriteLine("-------------------------------------------"); Console.WriteLine($"\t You need to investment about = {DemandSessionInfo.Pomodoro.DemandRate} pomodoros"); Console.WriteLine(" \n SESSIONS "); Console.WriteLine("-------------------------------------------"); Console.WriteLine($"\t You need to investment about = {DemandSessionInfo.DemandRate} sessions"); }
private static void LoadData(IActivity activity) { ReadingActivity readingActivity = (ReadingActivity)activity; try { AddBookInfo(readingActivity.Book); Console.Clear(); Console.WriteLine("****** Enter how long it takes you to read a single page ****** "); TimeFormat timeSettings = new TimeFormat(); Console.WriteLine("Hour: "); timeSettings.Hour = Convert.ToInt16(Console.ReadLine()); Console.WriteLine("Minute: "); timeSettings.Minute = Convert.ToInt16(Console.ReadLine()); Console.WriteLine("Second: "); timeSettings.Second = Convert.ToInt16(Console.ReadLine()); Console.Clear(); Console.WriteLine("****** Enter the pomodoro information ****** "); // PomodoroSettings pomodoroSettings = new PomodoroSettings(); Console.WriteLine("Pomodoro Per Session: 3"); readingActivity.SessionSettings.NumberOfPomodoros = 3; Console.WriteLine("Pomodoro Duration: 30 min"); readingActivity.SessionSettings.Pomodoro.PomodoroDuration = 30; readingActivity.SinglePageVelocity = timeSettings; Console.Clear(); //_velocityReadCalculator = new VelocityReadCalculator(book, pomodoroSettings, timeSettings); } catch (Exception) { Console.WriteLine("Invalid entries!!!!!"); } }