private void btnInactive_Click(object sender, RoutedEventArgs e) { var logic = new LogicHandler(); logic.changeStatus(listBoxUsers.SelectedValue.ToString()); }