Exemple #1
0
 //Sets open report form to null and shows this form with selected values reset
 private void TaskReport_FormClosed(object sender, FormClosedEventArgs e)
 {
     report.Dispose();
     report = null;
     reset();
     this.Show();
 }
        public ViewCompletedTasksForm(CompletedTaskParameterForm aParameter, User aUser)
        {
            instance  = this;
            parameter = aParameter;
            theUser   = aUser;

            InitializeComponent();
        }
Exemple #3
0
 private void completedOnClick(object sender, EventArgs e)
 {
     if (report == null)
     {
         report = new ViewCompletedTasksForm(instance, theUser);
         report.StartPosition = FormStartPosition.CenterScreen;
         report.FormClosed   += TaskReport_FormClosed;
         report.ShowDialog();
     }
     else
     {
         report.Activate();
     }
 }