root/TaskScheduler/TaskScheduler/TaskScheduler/Default.aspx.cs

67
15
15
16
        protected void Page_Load(object sender, EventArgs e)
16
        protected void Page_Load(object sender, EventArgs e)
17
        {
17
        {
18
            Task printTask = taskManager.TaskList.Find(t => t.Id.GetValueOrDefault() == 1);
18
            ITask printTask = taskManager.TaskList.Find(t => t.Id.GetValueOrDefault() == 1);
19
19
20
            lblStatus.Text = printTask != null ? (printTask.Active ? "Active" : "InActive") : "Task not found";
20
            lblStatus.Text = printTask != null ? (printTask.Active ? "Active" : "InActive") : "Task not found";
21
        }
21
        }