Beispiel #1
0
        // On click listener for managing account settings
        private void accountSettings_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            AccountSettings_Form accountForm = new AccountSettings_Form();
            accountForm.ShowDialog(this);
            this.Visible = true;
            this.Close();

        }
        //Menu Strip on click listener to go to the Account Settings Form
        private void accountSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            AccountSettings_Form accountForm = new AccountSettings_Form(currentUser, false, ref facList, currentUser);

            accountForm.ShowDialog(this);
            this.Visible = true;
            this.Close();
        }
        private void GridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > 0)
            {
                this.Visible = false;

                AccountSettings_Form accountForm = new AccountSettings_Form(e.RowIndex, true, ref facList, currentUser);
                accountForm.ShowDialog(this);
                this.Visible = true;
                //closes the current window
                this.Close();
            }
        }