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