Beispiel #1
0
        private void btnAddUser_Click(object sender, EventArgs e)
        {
            addsuccess = false;
            LoginForm myMainForm = new LoginForm();

            Form AddUser = new AddUser();

            AddUser.ShowDialog();
            if (addsuccess)
            {
                DisplayUsers(MovieLibraryMain.listOfUser);
            }
        }
Beispiel #2
0
        private void createProfileBtn_Click(object sender, EventArgs e)
        {
            //if (Globals.addUserExists == false)
            //{
            AddUser newUser = new AddUser();

            newUser.MdiParent = this.MdiParent;
            newUser.Show();
            //Globals.addUserExists = true;
            //}
            //    else
            //    {
            //    AddUser.staticVar.BringToFront();
            //    }

            //
        }