// update the currently selected user private void UserComboBox_SelectedChanged(object sender, EventArgs e) { string currentUsername = UserComboBox.Text; var temp = Users.Where(u => u.Username == currentUsername).FirstOrDefault(); if (temp == null) { Console.WriteLine("User not found when changing combo selection"); return; } CurrentUser = temp; UpdateInterface(); }
private void InitializeVariables() { Users = new List <Backend.User>(); CurrentUser = new Backend.User(); }