Beispiel #1
0
 public CompletedTaskParameterForm(User aUser)
 {
     instance = this;
     theUser  = aUser;
     InitializeComponent();
     reset();
 }
        public ViewCompletedTasksForm(CompletedTaskParameterForm aParameter, User aUser)
        {
            instance  = this;
            parameter = aParameter;
            theUser   = aUser;

            InitializeComponent();
        }
Beispiel #3
0
 private void TaskParameter_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (taskParameter != null)
     {
         taskParameter.Dispose();
         taskParameter = null;
     }
 }
Beispiel #4
0
        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();
            }
        }
Beispiel #5
0
 public ViewAverageTimePerTask(CompletedTaskParameterForm aParameter, User aUser)
 {
     parameter = aParameter;
     theUser   = aUser;
     InitializeComponent();
 }