Beispiel #1
0
        private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNewPassword newForm = new frmNewPassword();

            newForm.ninetyDayUpdate = false;
            DialogResult npresult = newForm.ShowDialog();
        }
Beispiel #2
0
        private void frm1_Load(object sender, EventArgs e)
        {
            orgFrm     = Size;
            orgPackge  = new Rectangle(Packages.Location.X, Packages.Location.Y, Packages.Width, Packages.Height);
            orgProduct = new Rectangle(product.Location.X, product.Location.Y, product.Width, product.Height);

            frmGuardian  guardian = new frmGuardian();
            DialogResult result   = guardian.ShowDialog();

            DateTime today = DateTime.Today;
            DateTime passwordLastChangedDate = PasswordDB.GetLastUpdateDate();

            if ((today - passwordLastChangedDate).Days >= 90)
            {
                frmNewPassword newForm = new frmNewPassword();
                newForm.ninetyDayUpdate = true;
                DialogResult npresult = newForm.ShowDialog();
            }
        }