Exemplo n.º 1
0
        // 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();
        }
Exemplo n.º 2
0
 private void InitializeVariables()
 {
     Users       = new List <Backend.User>();
     CurrentUser = new Backend.User();
 }