Example #1
0
 public Form3(Class.UserList Users)
 {
     // TODO: Complete member initialization
     this.Users = Users;
     InitializeComponent();
     userName.Enabled = false;
     password.Enabled = false;
     reqOne.Enabled = false;
     reqTwo.Enabled = false;
 }
Example #2
0
        private void logBtn_Click(object sender, EventArgs e)
        {
            logIn = new Form3(Users);
            //logIn.Show();
            var dialogResult = logIn.ShowDialog();
            if (dialogResult != System.Windows.Forms.DialogResult.Cancel)
            {
                currentUser = logIn.SelectedUser;

                if(logIn.UserRegistered == true) //if we have a new user/users registered
                Users = logIn.GetModifiedUserList;
            }
        }
Example #3
0
 private void GetUsers()
 {
     Users = (UserList)DeserializeXML("userlist", typeof(UserList), usersSource);
 }