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; }
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; } }
private void GetUsers() { Users = (UserList)DeserializeXML("userlist", typeof(UserList), usersSource); }