Exemplo n.º 1
0
 //Helper that sets all form variables to current instance if not null
 private void setFormVariables()
 {
     //addUpdateAccount = AddUpdateAccountForm.Instance;
     //updateChildTask = AddUpdateChildTaskForm.Instance;
     //updateTask = AddUpdateTaskForm.Instance;
     //childTask = childTasksForm.Instance;
     changePasswordForm = changePasswordForm.Instance;
     dateForm           = dateForm.Instance;
     //task = tasksForm.Instance;
 }
Exemplo n.º 2
0
 private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (changePasswordForm == null)
     {
         changePasswordForm = new changePasswordForm(getUser());
         //changePasswordForm.MdiParent = this;
         changePasswordForm.StartPosition = FormStartPosition.CenterScreen;
         changePasswordForm.FormClosed   += Password_FormClosed;
         changePasswordForm.ShowDialog();
     }
     else
     {
         changePasswordForm.Activate();
     }
 }
Exemplo n.º 3
0
 private void Password_FormClosed(object sender, FormClosedEventArgs e)
 {
     changePasswordForm.Dispose();
     changePasswordForm = null;
 }
Exemplo n.º 4
0
 public changePasswordForm(User aUser)
 {
     InitializeComponent();
     this.theUser = aUser;
     instance     = this;
 }