|
@@ -385,26 +385,10 @@ |
385 |
385 |
|
if (attSchermata.bottoni[0].postCond != "") |
386 |
386 |
|
{ |
387 |
387 |
|
postC = proxSchermata.bottoni[0].postCond; |
388 |
|
- |
//indexAperta = postC.IndexOf('('); |
389 |
|
- |
//indexChiusa = postC.IndexOf(')'); |
390 |
|
- |
//evento = postC.Substring(indexAperta + 1, (indexChiusa - indexAperta) - 1); |
391 |
|
- |
|
392 |
|
- |
//indexVir = evento.IndexOf(','); |
393 |
|
- |
//nomeEvento = evento.Substring(0, indexVir); |
394 |
|
- |
//statoE = evento.Substring(indexVir + 1); |
395 |
|
- |
//if (statoE == "true") |
396 |
|
- |
//{ |
397 |
|
- |
// statoEvento = true; |
398 |
|
- |
//} |
399 |
|
- |
//else |
400 |
|
- |
//{ |
401 |
|
- |
// statoEvento = false; |
402 |
|
- |
//} |
403 |
|
- |
|
|
388 |
+ |
|
404 |
389 |
|
listaEventi.Add(postC); |
405 |
390 |
|
|
406 |
391 |
|
} |
407 |
|
- |
// |
408 |
392 |
|
|
409 |
393 |
|
scroller.ScrollToVerticalOffset(0.0); //riporta lo scroller alla posizione di partenza |
410 |
394 |
|
|
|
@@ -420,9 +404,7 @@ |
420 |
404 |
|
|
421 |
405 |
|
try |
422 |
406 |
|
{ |
423 |
|
- |
|
424 |
407 |
|
imgTop.Source = new BitmapImage(new Uri(uriImg, UriKind.Absolute)); |
425 |
|
- |
//Boolean b = true; |
426 |
408 |
|
} |
427 |
409 |
|
catch { } |
428 |
410 |
|
|
|
@@ -433,35 +415,52 @@ |
433 |
415 |
|
|
434 |
416 |
|
topPanel.DataContext = proxSchermata; |
435 |
417 |
|
|
436 |
|
- |
//Recuperiamo i dati relativi ai bottoni |
437 |
|
- |
int numBottoni = proxSchermata.nBottoni; |
438 |
|
- |
switch (numBottoni) |
439 |
|
- |
{ |
440 |
|
- |
case 1: |
441 |
|
- |
buttonPanel1.Visibility = Visibility.Visible; |
442 |
|
- |
String testoBottone11 = proxSchermata.bottoni[0].testo; |
443 |
|
- |
textB11.Text = testoBottone11; |
444 |
418 |
|
|
445 |
|
- |
//PRE-CONDIZIONI |
446 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
|
419 |
+ |
//PRE-CONDIZIONI |
|
420 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
421 |
+ |
{ |
|
422 |
+ |
if (bot.preCond != "") |
|
423 |
+ |
{ |
|
424 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
425 |
+ |
foreach (String even in listaEventi) |
447 |
426 |
|
{ |
448 |
|
- |
//Scorre la lista degli eventi |
449 |
|
- |
foreach (String even in listaEventi) |
|
427 |
+ |
if (even == bot.preCond) |
450 |
428 |
|
{ |
451 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
452 |
|
- |
{ |
453 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
429 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
454 |
430 |
|
|
455 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
456 |
|
- |
proxSchermata.bottoni = null; |
|
431 |
+ |
//Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
|
432 |
+ |
//proxSchermata.bottoni = null; |
|
433 |
+ |
//proxSchermata.bottoni.Clear(); |
|
434 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
457 |
435 |
|
|
458 |
|
- |
proxSchermata.bottoni.Add(b1); |
|
436 |
+ |
|
|
437 |
+ |
try |
|
438 |
+ |
{ |
|
439 |
+ |
proxSchermata.bottoni.Add(bot); |
459 |
440 |
|
} |
|
441 |
+ |
catch { } |
|
442 |
+ |
|
|
443 |
+ |
|
|
444 |
+ |
|
|
445 |
+ |
|
|
446 |
+ |
//proxSchermata.bottoni.Insert(0, bot); |
460 |
447 |
|
|
461 |
448 |
|
} |
462 |
449 |
|
|
463 |
450 |
|
} |
464 |
451 |
|
|
|
452 |
+ |
} |
|
453 |
+ |
} |
|
454 |
+ |
|
|
455 |
+ |
//Recuperiamo i dati relativi ai bottoni |
|
456 |
+ |
int numBottoni = proxSchermata.nBottoni; |
|
457 |
+ |
switch (numBottoni) |
|
458 |
+ |
{ |
|
459 |
+ |
case 1: |
|
460 |
+ |
buttonPanel1.Visibility = Visibility.Visible; |
|
461 |
+ |
String testoBottone11 = proxSchermata.bottoni[0].testo; |
|
462 |
+ |
textB11.Text = testoBottone11; |
|
463 |
+ |
|
465 |
464 |
|
buttonPanel1.DataContext = proxSchermata; // Per il binding |
466 |
465 |
|
attSchermata = proxSchermata; |
467 |
466 |
|
break; |
|
@@ -470,76 +469,9 @@ |
470 |
469 |
|
String testoBottone21 = proxSchermata.bottoni[0].testo; |
471 |
470 |
|
textB21.Text = testoBottone21; |
472 |
471 |
|
|
473 |
|
- |
//PRE-CONDIZIONI |
474 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
475 |
|
- |
{ |
476 |
|
- |
//Scorre la lista degli eventi |
477 |
|
- |
foreach (String even in listaEventi) |
478 |
|
- |
{ |
479 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
480 |
|
- |
{ |
481 |
|
- |
pulisciBottoni(); |
482 |
|
- |
|
483 |
|
- |
//Visualizziamo solo il bottone che ci interessa |
484 |
|
- |
buttonPanel1.Visibility = Visibility.Visible; |
485 |
|
- |
textB11.Text = proxSchermata.bottoni[0].testo; |
486 |
|
- |
|
487 |
|
- |
//proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
488 |
|
- |
|
489 |
|
- |
//Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
490 |
|
- |
|
491 |
|
- |
|
492 |
|
- |
//try |
493 |
|
- |
//{ |
494 |
|
- |
// proxSchermata.bottoni.Clear(); |
495 |
|
- |
// proxSchermata.bottoni.Insert(0,b1); |
496 |
|
- |
//} |
497 |
|
- |
//catch { } |
498 |
|
- |
|
499 |
|
- |
} |
500 |
|
- |
|
501 |
|
- |
} |
502 |
|
- |
|
503 |
|
- |
} |
504 |
|
- |
|
505 |
472 |
|
String testoBottone22 = proxSchermata.bottoni[1].testo; |
506 |
473 |
|
textB22.Text = testoBottone22; |
507 |
474 |
|
|
508 |
|
- |
//PRE-CONDIZIONI |
509 |
|
- |
if (proxSchermata.bottoni[1].preCond != "") |
510 |
|
- |
{ |
511 |
|
- |
//Scorre la lista degli eventi |
512 |
|
- |
foreach (String even in listaEventi) |
513 |
|
- |
{ |
514 |
|
- |
if (even == proxSchermata.bottoni[1].preCond) |
515 |
|
- |
{ |
516 |
|
- |
pulisciBottoni(); |
517 |
|
- |
|
518 |
|
- |
//Visualizziamo solo il bottone che ci interessa |
519 |
|
- |
buttonPanel1.Visibility = Visibility.Visible; |
520 |
|
- |
textB11.Text = proxSchermata.bottoni[1].testo; |
521 |
|
- |
|
522 |
|
- |
|
523 |
|
- |
buttonPanel1.DataContext = proxSchermata; |
524 |
|
- |
|
525 |
|
- |
//proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
526 |
|
- |
|
527 |
|
- |
//Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
528 |
|
- |
|
529 |
|
- |
|
530 |
|
- |
//try |
531 |
|
- |
//{ |
532 |
|
- |
// proxSchermata.bottoni.Clear(); |
533 |
|
- |
// proxSchermata.bottoni.Insert(0,b1); |
534 |
|
- |
//} |
535 |
|
- |
//catch { } |
536 |
|
- |
|
537 |
|
- |
} |
538 |
|
- |
|
539 |
|
- |
} |
540 |
|
- |
|
541 |
|
- |
} |
542 |
|
- |
|
543 |
475 |
|
buttonPanel2.DataContext = proxSchermata; // Per il binding |
544 |
476 |
|
attSchermata = proxSchermata; |
545 |
477 |
|
break; |
|
@@ -548,72 +480,12 @@ |
548 |
480 |
|
String testoBottone31 = proxSchermata.bottoni[0].testo; |
549 |
481 |
|
textB31.Text = testoBottone31; |
550 |
482 |
|
|
551 |
|
- |
//PRE-CONDIZIONI |
552 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
553 |
|
- |
{ |
554 |
|
- |
//Scorre la lista degli eventi |
555 |
|
- |
foreach (String even in listaEventi) |
556 |
|
- |
{ |
557 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
558 |
|
- |
{ |
559 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
560 |
|
- |
|
561 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
562 |
|
- |
proxSchermata.bottoni = null; |
563 |
|
- |
|
564 |
|
- |
proxSchermata.bottoni.Add(b1); |
565 |
|
- |
} |
566 |
|
- |
|
567 |
|
- |
} |
568 |
|
- |
|
569 |
|
- |
} |
570 |
|
- |
|
571 |
483 |
|
String testoBottone32 = proxSchermata.bottoni[1].testo; |
572 |
484 |
|
textB32.Text = testoBottone32; |
573 |
485 |
|
|
574 |
|
- |
//PRE-CONDIZIONI |
575 |
|
- |
if (proxSchermata.bottoni[1].preCond != "") |
576 |
|
- |
{ |
577 |
|
- |
//Scorre la lista degli eventi |
578 |
|
- |
foreach (String even in listaEventi) |
579 |
|
- |
{ |
580 |
|
- |
if (even == proxSchermata.bottoni[1].preCond) |
581 |
|
- |
{ |
582 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
583 |
|
- |
|
584 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[1].targetID, proxSchermata.bottoni[1].testo, proxSchermata.bottoni[1].preCond, proxSchermata.bottoni[1].postCond); |
585 |
|
- |
proxSchermata.bottoni = null; |
586 |
|
- |
|
587 |
|
- |
proxSchermata.bottoni.Add(b1); |
588 |
|
- |
} |
589 |
|
- |
|
590 |
|
- |
} |
591 |
|
- |
|
592 |
|
- |
} |
593 |
|
- |
|
594 |
486 |
|
String testoBottone33 = proxSchermata.bottoni[2].testo; |
595 |
487 |
|
textB33.Text = testoBottone33; |
596 |
488 |
|
|
597 |
|
- |
//PRE-CONDIZIONI |
598 |
|
- |
if (proxSchermata.bottoni[2].preCond != "") |
599 |
|
- |
{ |
600 |
|
- |
//Scorre la lista degli eventi |
601 |
|
- |
foreach (String even in listaEventi) |
602 |
|
- |
{ |
603 |
|
- |
if (even == proxSchermata.bottoni[2].preCond) |
604 |
|
- |
{ |
605 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
606 |
|
- |
|
607 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[2].targetID, proxSchermata.bottoni[2].testo, proxSchermata.bottoni[2].preCond, proxSchermata.bottoni[2].postCond); |
608 |
|
- |
proxSchermata.bottoni = null; |
609 |
|
- |
|
610 |
|
- |
proxSchermata.bottoni.Add(b1); |
611 |
|
- |
} |
612 |
|
- |
|
613 |
|
- |
} |
614 |
|
- |
|
615 |
|
- |
} |
616 |
|
- |
|
617 |
489 |
|
buttonPanel3.DataContext = proxSchermata; // Per il binding |
618 |
490 |
|
attSchermata = proxSchermata; |
619 |
491 |
|
break; |
|
@@ -622,95 +494,15 @@ |
622 |
494 |
|
String testoBottone41 = proxSchermata.bottoni[0].testo; |
623 |
495 |
|
textB41.Text = testoBottone41; |
624 |
496 |
|
|
625 |
|
- |
//PRE-CONDIZIONI |
626 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
627 |
|
- |
{ |
628 |
|
- |
//Scorre la lista degli eventi |
629 |
|
- |
foreach (String even in listaEventi) |
630 |
|
- |
{ |
631 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
632 |
|
- |
{ |
633 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
634 |
|
- |
|
635 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
636 |
|
- |
proxSchermata.bottoni = null; |
637 |
|
- |
|
638 |
|
- |
proxSchermata.bottoni.Add(b1); |
639 |
|
- |
} |
640 |
|
- |
|
641 |
|
- |
} |
642 |
|
- |
|
643 |
|
- |
} |
644 |
|
- |
|
645 |
497 |
|
String testoBottone42 = proxSchermata.bottoni[1].testo; |
646 |
498 |
|
textB42.Text = testoBottone42; |
647 |
499 |
|
|
648 |
|
- |
//PRE-CONDIZIONI |
649 |
|
- |
if (proxSchermata.bottoni[1].preCond != "") |
650 |
|
- |
{ |
651 |
|
- |
//Scorre la lista degli eventi |
652 |
|
- |
foreach (String even in listaEventi) |
653 |
|
- |
{ |
654 |
|
- |
if (even == proxSchermata.bottoni[1].preCond) |
655 |
|
- |
{ |
656 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
657 |
|
- |
|
658 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[1].targetID, proxSchermata.bottoni[1].testo, proxSchermata.bottoni[1].preCond, proxSchermata.bottoni[1].postCond); |
659 |
|
- |
proxSchermata.bottoni = null; |
660 |
|
- |
|
661 |
|
- |
proxSchermata.bottoni.Add(b1); |
662 |
|
- |
} |
663 |
|
- |
|
664 |
|
- |
} |
665 |
|
- |
|
666 |
|
- |
} |
667 |
|
- |
|
668 |
500 |
|
String testoBottone43 = proxSchermata.bottoni[2].testo; |
669 |
501 |
|
textB43.Text = testoBottone43; |
670 |
502 |
|
|
671 |
|
- |
//PRE-CONDIZIONI |
672 |
|
- |
if (proxSchermata.bottoni[2].preCond != "") |
673 |
|
- |
{ |
674 |
|
- |
//Scorre la lista degli eventi |
675 |
|
- |
foreach (String even in listaEventi) |
676 |
|
- |
{ |
677 |
|
- |
if (even == proxSchermata.bottoni[2].preCond) |
678 |
|
- |
{ |
679 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
680 |
|
- |
|
681 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[2].targetID, proxSchermata.bottoni[2].testo, proxSchermata.bottoni[2].preCond, proxSchermata.bottoni[2].postCond); |
682 |
|
- |
proxSchermata.bottoni = null; |
683 |
|
- |
|
684 |
|
- |
proxSchermata.bottoni.Add(b1); |
685 |
|
- |
} |
686 |
|
- |
|
687 |
|
- |
} |
688 |
|
- |
|
689 |
|
- |
} |
690 |
|
- |
|
691 |
503 |
|
String testoBottone44 = proxSchermata.bottoni[3].testo; |
692 |
504 |
|
textB44.Text = testoBottone44; |
693 |
505 |
|
|
694 |
|
- |
//PRE-CONDIZIONI |
695 |
|
- |
if (proxSchermata.bottoni[3].preCond != "") |
696 |
|
- |
{ |
697 |
|
- |
//Scorre la lista degli eventi |
698 |
|
- |
foreach (String even in listaEventi) |
699 |
|
- |
{ |
700 |
|
- |
if (even == proxSchermata.bottoni[3].preCond) |
701 |
|
- |
{ |
702 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
703 |
|
- |
|
704 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[3].targetID, proxSchermata.bottoni[3].testo, proxSchermata.bottoni[3].preCond, proxSchermata.bottoni[3].postCond); |
705 |
|
- |
proxSchermata.bottoni = null; |
706 |
|
- |
|
707 |
|
- |
proxSchermata.bottoni.Add(b1); |
708 |
|
- |
} |
709 |
|
- |
|
710 |
|
- |
} |
711 |
|
- |
|
712 |
|
- |
} |
713 |
|
- |
|
714 |
506 |
|
buttonPanel4.DataContext = proxSchermata; // Per il binding |
715 |
507 |
|
attSchermata = proxSchermata; |
716 |
508 |
|
break; |
|
@@ -765,35 +557,41 @@ |
765 |
557 |
|
|
766 |
558 |
|
topPanel.DataContext = proxSchermata; |
767 |
559 |
|
|
768 |
|
- |
//Recuperiamo i dati relativi ai bottoni |
769 |
|
- |
int numBottoni = proxSchermata.nBottoni; |
770 |
|
- |
switch (numBottoni) |
771 |
|
- |
{ |
772 |
|
- |
case 1: |
773 |
|
- |
buttonPanel1.Visibility = Visibility.Visible; |
774 |
|
- |
String testoBottone11 = proxSchermata.bottoni[0].testo; |
775 |
|
- |
textB11.Text = testoBottone11; |
776 |
560 |
|
|
777 |
|
- |
//PRE-CONDIZIONI |
778 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
|
561 |
+ |
//PRE-CONDIZIONI |
|
562 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
563 |
+ |
{ |
|
564 |
+ |
if (bot.preCond != "") |
|
565 |
+ |
{ |
|
566 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
567 |
+ |
foreach (String even in listaEventi) |
779 |
568 |
|
{ |
780 |
|
- |
//Scorre la lista degli eventi |
781 |
|
- |
foreach (String even in listaEventi) |
|
569 |
+ |
if (even == bot.preCond) |
782 |
570 |
|
{ |
783 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
784 |
|
- |
{ |
785 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
786 |
|
- |
|
787 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
788 |
|
- |
proxSchermata.bottoni = null; |
|
571 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
572 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
789 |
573 |
|
|
790 |
|
- |
proxSchermata.bottoni.Add(b1); |
|
574 |
+ |
try |
|
575 |
+ |
{ |
|
576 |
+ |
proxSchermata.bottoni.Add(bot); |
791 |
577 |
|
} |
792 |
|
- |
|
|
578 |
+ |
catch { } |
793 |
579 |
|
} |
794 |
580 |
|
|
795 |
581 |
|
} |
796 |
582 |
|
|
|
583 |
+ |
} |
|
584 |
+ |
} |
|
585 |
+ |
|
|
586 |
+ |
//Recuperiamo i dati relativi ai bottoni |
|
587 |
+ |
int numBottoni = proxSchermata.nBottoni; |
|
588 |
+ |
switch (numBottoni) |
|
589 |
+ |
{ |
|
590 |
+ |
case 1: |
|
591 |
+ |
buttonPanel1.Visibility = Visibility.Visible; |
|
592 |
+ |
String testoBottone11 = proxSchermata.bottoni[0].testo; |
|
593 |
+ |
textB11.Text = testoBottone11; |
|
594 |
+ |
|
797 |
595 |
|
buttonPanel1.DataContext = proxSchermata; // Per il binding |
798 |
596 |
|
attSchermata = proxSchermata; |
799 |
597 |
|
break; |
|
@@ -802,49 +600,9 @@ |
802 |
600 |
|
String testoBottone21 = proxSchermata.bottoni[0].testo; |
803 |
601 |
|
textB21.Text = testoBottone21; |
804 |
602 |
|
|
805 |
|
- |
//PRE-CONDIZIONI |
806 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
807 |
|
- |
{ |
808 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
809 |
|
- |
foreach (String even in listaEventi) |
810 |
|
- |
{ |
811 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
812 |
|
- |
{ |
813 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
814 |
|
- |
|
815 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
816 |
|
- |
proxSchermata.bottoni = null; |
817 |
|
- |
|
818 |
|
- |
proxSchermata.bottoni.Add(b1); |
819 |
|
- |
} |
820 |
|
- |
|
821 |
|
- |
} |
822 |
|
- |
|
823 |
|
- |
} |
824 |
|
- |
|
825 |
603 |
|
String testoBottone22 = proxSchermata.bottoni[1].testo; |
826 |
604 |
|
textB22.Text = testoBottone22; |
827 |
605 |
|
|
828 |
|
- |
//PRE-CONDIZIONI |
829 |
|
- |
if (proxSchermata.bottoni[1].preCond != "") |
830 |
|
- |
{ |
831 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
832 |
|
- |
foreach (String even in listaEventi) |
833 |
|
- |
{ |
834 |
|
- |
if (even == proxSchermata.bottoni[1].preCond) |
835 |
|
- |
{ |
836 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
837 |
|
- |
|
838 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[1].targetID, proxSchermata.bottoni[1].testo, proxSchermata.bottoni[1].preCond, proxSchermata.bottoni[1].postCond); |
839 |
|
- |
proxSchermata.bottoni = null; |
840 |
|
- |
|
841 |
|
- |
proxSchermata.bottoni.Add(b1); |
842 |
|
- |
} |
843 |
|
- |
|
844 |
|
- |
} |
845 |
|
- |
|
846 |
|
- |
} |
847 |
|
- |
|
848 |
606 |
|
buttonPanel2.DataContext = proxSchermata; // Per il binding |
849 |
607 |
|
attSchermata = proxSchermata; |
850 |
608 |
|
break; |
|
@@ -853,72 +611,12 @@ |
853 |
611 |
|
String testoBottone31 = proxSchermata.bottoni[0].testo; |
854 |
612 |
|
textB31.Text = testoBottone31; |
855 |
613 |
|
|
856 |
|
- |
//PRE-CONDIZIONI |
857 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
858 |
|
- |
{ |
859 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
860 |
|
- |
foreach (String even in listaEventi) |
861 |
|
- |
{ |
862 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
863 |
|
- |
{ |
864 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
865 |
|
- |
|
866 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
867 |
|
- |
proxSchermata.bottoni = null; |
868 |
|
- |
|
869 |
|
- |
proxSchermata.bottoni.Add(b1); |
870 |
|
- |
} |
871 |
|
- |
|
872 |
|
- |
} |
873 |
|
- |
|
874 |
|
- |
} |
875 |
|
- |
|
876 |
614 |
|
String testoBottone32 = proxSchermata.bottoni[1].testo; |
877 |
615 |
|
textB32.Text = testoBottone32; |
878 |
616 |
|
|
879 |
|
- |
//PRE-CONDIZIONI |
880 |
|
- |
if (proxSchermata.bottoni[1].preCond != "") |
881 |
|
- |
{ |
882 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
883 |
|
- |
foreach (String even in listaEventi) |
884 |
|
- |
{ |
885 |
|
- |
if (even == proxSchermata.bottoni[1].preCond) |
886 |
|
- |
{ |
887 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
888 |
|
- |
|
889 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[1].targetID, proxSchermata.bottoni[1].testo, proxSchermata.bottoni[1].preCond, proxSchermata.bottoni[1].postCond); |
890 |
|
- |
proxSchermata.bottoni = null; |
891 |
|
- |
|
892 |
|
- |
proxSchermata.bottoni.Add(b1); |
893 |
|
- |
} |
894 |
|
- |
|
895 |
|
- |
} |
896 |
|
- |
|
897 |
|
- |
} |
898 |
|
- |
|
899 |
617 |
|
String testoBottone33 = proxSchermata.bottoni[2].testo; |
900 |
618 |
|
textB33.Text = testoBottone33; |
901 |
619 |
|
|
902 |
|
- |
//PRE-CONDIZIONI |
903 |
|
- |
if (proxSchermata.bottoni[2].preCond != "") |
904 |
|
- |
{ |
905 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
906 |
|
- |
foreach (String even in listaEventi) |
907 |
|
- |
{ |
908 |
|
- |
if (even == proxSchermata.bottoni[2].preCond) |
909 |
|
- |
{ |
910 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
911 |
|
- |
|
912 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[2].targetID, proxSchermata.bottoni[2].testo, proxSchermata.bottoni[2].preCond, proxSchermata.bottoni[2].postCond); |
913 |
|
- |
proxSchermata.bottoni = null; |
914 |
|
- |
|
915 |
|
- |
proxSchermata.bottoni.Add(b1); |
916 |
|
- |
} |
917 |
|
- |
|
918 |
|
- |
} |
919 |
|
- |
|
920 |
|
- |
} |
921 |
|
- |
|
922 |
620 |
|
buttonPanel3.DataContext = proxSchermata; // Per il binding |
923 |
621 |
|
attSchermata = proxSchermata; |
924 |
622 |
|
break; |
|
@@ -927,95 +625,15 @@ |
927 |
625 |
|
String testoBottone41 = proxSchermata.bottoni[0].testo; |
928 |
626 |
|
textB41.Text = testoBottone41; |
929 |
627 |
|
|
930 |
|
- |
//PRE-CONDIZIONI |
931 |
|
- |
if (proxSchermata.bottoni[0].preCond != "") |
932 |
|
- |
{ |
933 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
934 |
|
- |
foreach (String even in listaEventi) |
935 |
|
- |
{ |
936 |
|
- |
if (even == proxSchermata.bottoni[0].preCond) |
937 |
|
- |
{ |
938 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
939 |
|
- |
|
940 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[0].targetID, proxSchermata.bottoni[0].testo, proxSchermata.bottoni[0].preCond, proxSchermata.bottoni[0].postCond); |
941 |
|
- |
proxSchermata.bottoni = null; |
942 |
|
- |
|
943 |
|
- |
proxSchermata.bottoni.Add(b1); |
944 |
|
- |
} |
945 |
|
- |
|
946 |
|
- |
} |
947 |
|
- |
|
948 |
|
- |
} |
949 |
|
- |
|
950 |
628 |
|
String testoBottone42 = proxSchermata.bottoni[1].testo; |
951 |
629 |
|
textB42.Text = testoBottone42; |
952 |
630 |
|
|
953 |
|
- |
//PRE-CONDIZIONI |
954 |
|
- |
if (proxSchermata.bottoni[1].preCond != "") |
955 |
|
- |
{ |
956 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
957 |
|
- |
foreach (String even in listaEventi) |
958 |
|
- |
{ |
959 |
|
- |
if (even == proxSchermata.bottoni[1].preCond) |
960 |
|
- |
{ |
961 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
962 |
|
- |
|
963 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[1].targetID, proxSchermata.bottoni[1].testo, proxSchermata.bottoni[1].preCond, proxSchermata.bottoni[1].postCond); |
964 |
|
- |
proxSchermata.bottoni = null; |
965 |
|
- |
|
966 |
|
- |
proxSchermata.bottoni.Add(b1); |
967 |
|
- |
} |
968 |
|
- |
|
969 |
|
- |
} |
970 |
|
- |
|
971 |
|
- |
} |
972 |
|
- |
|
973 |
631 |
|
String testoBottone43 = proxSchermata.bottoni[2].testo; |
974 |
632 |
|
textB43.Text = testoBottone43; |
975 |
633 |
|
|
976 |
|
- |
//PRE-CONDIZIONI |
977 |
|
- |
if (proxSchermata.bottoni[2].preCond != "") |
978 |
|
- |
{ |
979 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
980 |
|
- |
foreach (String even in listaEventi) |
981 |
|
- |
{ |
982 |
|
- |
if (even == proxSchermata.bottoni[2].preCond) |
983 |
|
- |
{ |
984 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
985 |
|
- |
|
986 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[2].targetID, proxSchermata.bottoni[2].testo, proxSchermata.bottoni[2].preCond, proxSchermata.bottoni[2].postCond); |
987 |
|
- |
proxSchermata.bottoni = null; |
988 |
|
- |
|
989 |
|
- |
proxSchermata.bottoni.Add(b1); |
990 |
|
- |
} |
991 |
|
- |
|
992 |
|
- |
} |
993 |
|
- |
|
994 |
|
- |
} |
995 |
|
- |
|
996 |
634 |
|
String testoBottone44 = proxSchermata.bottoni[3].testo; |
997 |
635 |
|
textB44.Text = testoBottone44; |
998 |
636 |
|
|
999 |
|
- |
//PRE-CONDIZIONI |
1000 |
|
- |
if (proxSchermata.bottoni[3].preCond != "") |
1001 |
|
- |
{ |
1002 |
|
- |
//Scorre la lista di chiavi di mappaEventi |
1003 |
|
- |
foreach (String even in listaEventi) |
1004 |
|
- |
{ |
1005 |
|
- |
if (even == proxSchermata.bottoni[3].preCond) |
1006 |
|
- |
{ |
1007 |
|
- |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
1008 |
|
- |
|
1009 |
|
- |
Bottone b1 = new Bottone(proxSchermata.bottoni[3].targetID, proxSchermata.bottoni[3].testo, proxSchermata.bottoni[3].preCond, proxSchermata.bottoni[3].postCond); |
1010 |
|
- |
proxSchermata.bottoni = null; |
1011 |
|
- |
|
1012 |
|
- |
proxSchermata.bottoni.Add(b1); |
1013 |
|
- |
} |
1014 |
|
- |
|
1015 |
|
- |
} |
1016 |
|
- |
|
1017 |
|
- |
} |
1018 |
|
- |
|
1019 |
637 |
|
buttonPanel4.DataContext = proxSchermata; // Per il binding |
1020 |
638 |
|
attSchermata = proxSchermata; |
1021 |
639 |
|
break; |
|
@@ -1058,6 +676,31 @@ |
1058 |
676 |
|
|
1059 |
677 |
|
topPanel.DataContext = proxSchermata; |
1060 |
678 |
|
|
|
679 |
+ |
//PRE-CONDIZIONI |
|
680 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
681 |
+ |
{ |
|
682 |
+ |
if (bot.preCond != "") |
|
683 |
+ |
{ |
|
684 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
685 |
+ |
foreach (String even in listaEventi) |
|
686 |
+ |
{ |
|
687 |
+ |
if (even == bot.preCond) |
|
688 |
+ |
{ |
|
689 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
690 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
691 |
+ |
|
|
692 |
+ |
try |
|
693 |
+ |
{ |
|
694 |
+ |
proxSchermata.bottoni.Add(bot); |
|
695 |
+ |
} |
|
696 |
+ |
catch { } |
|
697 |
+ |
} |
|
698 |
+ |
|
|
699 |
+ |
} |
|
700 |
+ |
|
|
701 |
+ |
} |
|
702 |
+ |
} |
|
703 |
+ |
|
1061 |
704 |
|
//Recuperiamo i dati relativi ai bottoni |
1062 |
705 |
|
int numBottoni = proxSchermata.nBottoni; |
1063 |
706 |
|
switch (numBottoni) |
|
@@ -1141,6 +784,31 @@ |
1141 |
784 |
|
|
1142 |
785 |
|
topPanel.DataContext = proxSchermata; |
1143 |
786 |
|
|
|
787 |
+ |
//PRE-CONDIZIONI |
|
788 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
789 |
+ |
{ |
|
790 |
+ |
if (bot.preCond != "") |
|
791 |
+ |
{ |
|
792 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
793 |
+ |
foreach (String even in listaEventi) |
|
794 |
+ |
{ |
|
795 |
+ |
if (even == bot.preCond) |
|
796 |
+ |
{ |
|
797 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
798 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
799 |
+ |
|
|
800 |
+ |
try |
|
801 |
+ |
{ |
|
802 |
+ |
proxSchermata.bottoni.Add(bot); |
|
803 |
+ |
} |
|
804 |
+ |
catch { } |
|
805 |
+ |
} |
|
806 |
+ |
|
|
807 |
+ |
} |
|
808 |
+ |
|
|
809 |
+ |
} |
|
810 |
+ |
} |
|
811 |
+ |
|
1144 |
812 |
|
//Recuperiamo i dati relativi ai bottoni |
1145 |
813 |
|
int numBottoni = proxSchermata.nBottoni; |
1146 |
814 |
|
switch (numBottoni) |
|
@@ -1224,6 +892,31 @@ |
1224 |
892 |
|
|
1225 |
893 |
|
topPanel.DataContext = proxSchermata; |
1226 |
894 |
|
|
|
895 |
+ |
//PRE-CONDIZIONI |
|
896 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
897 |
+ |
{ |
|
898 |
+ |
if (bot.preCond != "") |
|
899 |
+ |
{ |
|
900 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
901 |
+ |
foreach (String even in listaEventi) |
|
902 |
+ |
{ |
|
903 |
+ |
if (even == bot.preCond) |
|
904 |
+ |
{ |
|
905 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
906 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
907 |
+ |
|
|
908 |
+ |
try |
|
909 |
+ |
{ |
|
910 |
+ |
proxSchermata.bottoni.Add(bot); |
|
911 |
+ |
} |
|
912 |
+ |
catch { } |
|
913 |
+ |
} |
|
914 |
+ |
|
|
915 |
+ |
} |
|
916 |
+ |
|
|
917 |
+ |
} |
|
918 |
+ |
} |
|
919 |
+ |
|
1227 |
920 |
|
//Recuperiamo i dati relativi ai bottoni |
1228 |
921 |
|
int numBottoni = proxSchermata.nBottoni; |
1229 |
922 |
|
switch (numBottoni) |
|
@@ -1307,6 +1000,31 @@ |
1307 |
1000 |
|
|
1308 |
1001 |
|
topPanel.DataContext = proxSchermata; |
1309 |
1002 |
|
|
|
1003 |
+ |
//PRE-CONDIZIONI |
|
1004 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
1005 |
+ |
{ |
|
1006 |
+ |
if (bot.preCond != "") |
|
1007 |
+ |
{ |
|
1008 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
1009 |
+ |
foreach (String even in listaEventi) |
|
1010 |
+ |
{ |
|
1011 |
+ |
if (even == bot.preCond) |
|
1012 |
+ |
{ |
|
1013 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
1014 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
1015 |
+ |
|
|
1016 |
+ |
try |
|
1017 |
+ |
{ |
|
1018 |
+ |
proxSchermata.bottoni.Add(bot); |
|
1019 |
+ |
} |
|
1020 |
+ |
catch { } |
|
1021 |
+ |
} |
|
1022 |
+ |
|
|
1023 |
+ |
} |
|
1024 |
+ |
|
|
1025 |
+ |
} |
|
1026 |
+ |
} |
|
1027 |
+ |
|
1310 |
1028 |
|
//Recuperiamo i dati relativi ai bottoni |
1311 |
1029 |
|
int numBottoni = proxSchermata.nBottoni; |
1312 |
1030 |
|
switch (numBottoni) |
|
@@ -1390,6 +1108,31 @@ |
1390 |
1108 |
|
|
1391 |
1109 |
|
topPanel.DataContext = proxSchermata; |
1392 |
1110 |
|
|
|
1111 |
+ |
//PRE-CONDIZIONI |
|
1112 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
1113 |
+ |
{ |
|
1114 |
+ |
if (bot.preCond != "") |
|
1115 |
+ |
{ |
|
1116 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
1117 |
+ |
foreach (String even in listaEventi) |
|
1118 |
+ |
{ |
|
1119 |
+ |
if (even == bot.preCond) |
|
1120 |
+ |
{ |
|
1121 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
1122 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
1123 |
+ |
|
|
1124 |
+ |
try |
|
1125 |
+ |
{ |
|
1126 |
+ |
proxSchermata.bottoni.Add(bot); |
|
1127 |
+ |
} |
|
1128 |
+ |
catch { } |
|
1129 |
+ |
} |
|
1130 |
+ |
|
|
1131 |
+ |
} |
|
1132 |
+ |
|
|
1133 |
+ |
} |
|
1134 |
+ |
} |
|
1135 |
+ |
|
1393 |
1136 |
|
//Recuperiamo i dati relativi ai bottoni |
1394 |
1137 |
|
int numBottoni = proxSchermata.nBottoni; |
1395 |
1138 |
|
switch (numBottoni) |
|
@@ -1473,6 +1216,31 @@ |
1473 |
1216 |
|
|
1474 |
1217 |
|
topPanel.DataContext = proxSchermata; |
1475 |
1218 |
|
|
|
1219 |
+ |
//PRE-CONDIZIONI |
|
1220 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
1221 |
+ |
{ |
|
1222 |
+ |
if (bot.preCond != "") |
|
1223 |
+ |
{ |
|
1224 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
1225 |
+ |
foreach (String even in listaEventi) |
|
1226 |
+ |
{ |
|
1227 |
+ |
if (even == bot.preCond) |
|
1228 |
+ |
{ |
|
1229 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
1230 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
1231 |
+ |
|
|
1232 |
+ |
try |
|
1233 |
+ |
{ |
|
1234 |
+ |
proxSchermata.bottoni.Add(bot); |
|
1235 |
+ |
} |
|
1236 |
+ |
catch { } |
|
1237 |
+ |
} |
|
1238 |
+ |
|
|
1239 |
+ |
} |
|
1240 |
+ |
|
|
1241 |
+ |
} |
|
1242 |
+ |
} |
|
1243 |
+ |
|
1476 |
1244 |
|
//Recuperiamo i dati relativi ai bottoni |
1477 |
1245 |
|
int numBottoni = proxSchermata.nBottoni; |
1478 |
1246 |
|
switch (numBottoni) |
|
@@ -1557,6 +1325,31 @@ |
1557 |
1325 |
|
|
1558 |
1326 |
|
topPanel.DataContext = proxSchermata; |
1559 |
1327 |
|
|
|
1328 |
+ |
//PRE-CONDIZIONI |
|
1329 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
1330 |
+ |
{ |
|
1331 |
+ |
if (bot.preCond != "") |
|
1332 |
+ |
{ |
|
1333 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
1334 |
+ |
foreach (String even in listaEventi) |
|
1335 |
+ |
{ |
|
1336 |
+ |
if (even == bot.preCond) |
|
1337 |
+ |
{ |
|
1338 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
1339 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
1340 |
+ |
|
|
1341 |
+ |
try |
|
1342 |
+ |
{ |
|
1343 |
+ |
proxSchermata.bottoni.Add(bot); |
|
1344 |
+ |
} |
|
1345 |
+ |
catch { } |
|
1346 |
+ |
} |
|
1347 |
+ |
|
|
1348 |
+ |
} |
|
1349 |
+ |
|
|
1350 |
+ |
} |
|
1351 |
+ |
} |
|
1352 |
+ |
|
1560 |
1353 |
|
//Recuperiamo i dati relativi ai bottoni |
1561 |
1354 |
|
int numBottoni = proxSchermata.nBottoni; |
1562 |
1355 |
|
switch (numBottoni) |
|
@@ -1640,6 +1433,31 @@ |
1640 |
1433 |
|
|
1641 |
1434 |
|
topPanel.DataContext = proxSchermata; |
1642 |
1435 |
|
|
|
1436 |
+ |
//PRE-CONDIZIONI |
|
1437 |
+ |
foreach (Bottone bot in proxSchermata.bottoni) |
|
1438 |
+ |
{ |
|
1439 |
+ |
if (bot.preCond != "") |
|
1440 |
+ |
{ |
|
1441 |
+ |
//Scorre la lista degli eventi (pre-condizioni) |
|
1442 |
+ |
foreach (String even in listaEventi) |
|
1443 |
+ |
{ |
|
1444 |
+ |
if (even == bot.preCond) |
|
1445 |
+ |
{ |
|
1446 |
+ |
proxSchermata.nBottoni = 1; //setta 1 bottone sulla schermata successiva |
|
1447 |
+ |
proxSchermata.bottoni = new ObservableCollection<Bottone>(); |
|
1448 |
+ |
|
|
1449 |
+ |
try |
|
1450 |
+ |
{ |
|
1451 |
+ |
proxSchermata.bottoni.Add(bot); |
|
1452 |
+ |
} |
|
1453 |
+ |
catch { } |
|
1454 |
+ |
} |
|
1455 |
+ |
|
|
1456 |
+ |
} |
|
1457 |
+ |
|
|
1458 |
+ |
} |
|
1459 |
+ |
} |
|
1460 |
+ |
|
1643 |
1461 |
|
//Recuperiamo i dati relativi ai bottoni |
1644 |
1462 |
|
int numBottoni = proxSchermata.nBottoni; |
1645 |
1463 |
|
switch (numBottoni) |