public CompletedTaskParameterForm(User aUser) { instance = this; theUser = aUser; InitializeComponent(); reset(); }
public ViewCompletedTasksForm(CompletedTaskParameterForm aParameter, User aUser) { instance = this; parameter = aParameter; theUser = aUser; InitializeComponent(); }
private void TaskParameter_FormClosed(object sender, FormClosedEventArgs e) { if (taskParameter != null) { taskParameter.Dispose(); taskParameter = null; } }
private void completedTaskReport(object sender, EventArgs e) { List <Models.Task> tasks = TaskController.getListTasks(theUser.userID); if (tasks.Count == 0) { MessageBox.Show("It looks like you don't have any tasks right now"); return; } if (taskParameter == null) { taskParameter = new CompletedTaskParameterForm(theUser); taskParameter.StartPosition = FormStartPosition.CenterScreen; taskParameter.FormClosed += TaskParameter_FormClosed; taskParameter.ShowDialog(); } else { taskParameter.Activate(); } }
public ViewAverageTimePerTask(CompletedTaskParameterForm aParameter, User aUser) { parameter = aParameter; theUser = aUser; InitializeComponent(); }