public void InitControl(Task task) { this.task = task; lbTaskName.Text = task.Name; lbTaskGuid.Text = task.Guid; lbTaskID.Text = task.ID.ToString(); lbTaskState.Text = task.State.ToString(); lbTaskDateRegistered.Text = task.DateRegistered.ToString(); lbTaskDateSended.Text = task.DateSended.ToString(); lbTaskDateCompleted.Text = task.DateCompleted.ToString(); lbTaskDateExecute.Text = task.DateExecute.ToString(); }
public void InitControl(Task task) { this.task = task; lbTaskName.Text = task.Name; lbTaskGuid.Text = task.Guid; lbTaskID.Text = task.ID.ToString(); lbTaskState.Text = task.State.ToString(); lbTaskDateRegistered.Text = task.DateRegistered.ToString(); lbTaskDateSended.Text = task.DateSended.ToString(); lbTaskDateCompleted.Text = task.DateCompleted.ToString(); lbTaskDateExecute.Text = task.DateExecute.ToString(); if (task.ErrorDetails != null) { phErrorDetails.Visible = true; lbErrorDetails.Text = task.ErrorDetails; } else { phErrorDetails.Visible = false; } Visible = true; }
private void FillData(Task tsk) { Machine m = new Machine(); User u = new User(); tsk.Machine = m; tsk.User = u; }