private void AddItemButton_Click(object sender, EventArgs e) { GraphViewer.AddDemands(ItemListBox.SelectedItems.Cast <Item>()); }