Browse Source

выволд в лист бкос

chernyshyov.2000 4 years ago
parent
commit
8e947c8c60
1 changed files with 6 additions and 2 deletions
  1. 6 2
      testkonkurs1/Form3.cs

+ 6 - 2
testkonkurs1/Form3.cs

@@ -84,7 +84,7 @@ namespace testkonkurs1
                         lvl_comfort[j] = Mesta["lvl_comfort"].ToString();
                         Mesta.Close();
                     }
-                }
+                 
                 for (int j = 0; j < 20; j++)
                 {
                     if (lvl_comfort[j] != null)
@@ -99,7 +99,11 @@ namespace testkonkurs1
                 }
                 for (int j = 0; j < 20; j++)
                 {
-                    listBox1.Items.Add(nomer_comnat[j]+ " " + lvl_comfort[j] + " " + price[j]);
+                    if (nomer_comnat[j] != 0)
+                    {
+                        listBox1.Items.Add(nomer_comnat[j] + " " + lvl_comfort[j] + " " + price[j]);    
+                    }
+                   
                 }
 
             }