/* ends here */ private void DeleteFactoryClick(object sender, System.Windows.RoutedEventArgs e) { string factoryString = (string)FactoryList.SelectedItem; int factoryID = getIdFromFactoryString(factoryString); ClientServerUtil csu = ClientServerUtil.getInstance(); csu.deleteFactory(factoryID); FactoryList.Items.Clear(); initFactoryPulldown(csu); }