Guest User

Untitled

a guest
Nov 18th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. foreach (ListViewItem item in LW.Items)
  2. {
  3. if (item.Content.Equals("Adobe Photoshop"))
  4. {
  5. MessageBox.Show("Ошибка");
  6. }
  7. else
  8. {
  9. Product AdobePH = new Product { Title = "Adobe Photoshop", Number = 1, NumPrice = 10, Price = 20, Placement = "в наличии" };
  10. ((ArrayList)LW.Resources["Product1"]).Add(AdobePH);
  11. }
  12. }
Add Comment
Please, Sign In to add comment