|
@@ -44,12 +44,10 @@ namespace testkonkurs1
|
|
|
DateTime date_2_end = date_2_start.AddDays(Convert.ToInt16(Reader["kol_days"]));
|
|
|
// bool intersect = !(date_2_end < date_1start || date_2_start > date_1end);
|
|
|
bool intersect = date_2_end >= date_1start && date_2_start <= date_1end;
|
|
|
- if (!intersect) {
|
|
|
+ if (!intersect) {
|
|
|
|
|
|
-
|
|
|
- listBox1.Items.Add(Reader["nomer_cvitancii"] + " " + Reader["nomer_mesta"]);
|
|
|
-
|
|
|
- } s
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|