private void AddButton_Click(object sender, RoutedEventArgs e) { var newAccount = new Account(InformationNameTextBox.Text, InformationPasswordTextBox.Text, InformationEmailTextBox.Text); MessageBox.Show(DbModel.AddAccount(newAccount)); UpdateAccountListView(); HideAddButton(); ShowSaveButton(); HideInformationFrame(); }