public AddAssignmentForm(int taskStatuID, int projectID, int taskID) { InitializeComponent(); this.taskStatuID = taskStatuID; this.projectID = projectID; this.taskID = taskID; SetDateTimePickers(); SetJobTrackingWorkToDos(); SetJobTrackingStatus(); SetJobTrackingWorkDetails(); TaskBLL taskBll = new TaskBLL(); predictTime = taskBll.GetPredictTime(); ProjectBLL projectBll = new ProjectBLL(); Project project = projectBll.GetProject(projectID); projectName = project.ProjectName; if (project != null) { txtBoxProjectNoAndName.Text = project.ProjectID.ToString() + " / " + project.ProjectName; } if (taskID != 0) { LoadTextBoxesValues(); } }