private void MakeActive_Checked(object sender, RoutedEventArgs e) { if (makeActive.IsChecked == true) { makeActive.Content = "Make Inactive"; cust = (ActiveCustomer)Active.SelectedItem; cust.IsActive = false; active.Remove(cust); inactive.Add(cust); Refresh(); } else if (makeActive.IsChecked == false) { makeActive.Content = "Make Active"; cust = (ActiveCustomer)Inactive.SelectedItem; cust.IsActive = true; inactive.Remove(cust); active.Add(cust); Refresh(); } }
private void SelectionChanged2(object sender, SelectionChangedEventArgs e) { customer = InactiveUsers.SelectedItem as ActiveCustomer; FalseButton.IsChecked = true; UpdateSelected(); }