Example #1
0
 public MainWorkPlaceUC(InformationFlights informArrive, InformationFlights informDeparture)
 {
     InitializeComponent();
     leftPanel.Content  = new InformationForFlights(informArrive, true);
     rightPanel.Content = new InformationForFlights(informDeparture, false);
     CustomEvent.SignOrCloseDelegate(EndImitation, true);
 }
Example #2
0
        public Imitation()
        {
            CurrFlight        = new Flight();
            Flights           = new List <Flight>();
            InformForGrapfics = new ObservableCollection <InformForGrapfic>();
            initializeInfromForGraphic();
            InformDeparture = new InformationFlights();
            InformArrive    = new InformationFlights();

            currentDate = new DateTime(2001, 1, 1, 0, 0, 0);
            CustomTimer = new CustomTimer(currentDate);
        }
Example #3
0
 public InformationForFlights(InformationFlights informationForFlights, bool isArrive)
 {
     InitializeComponent();
     this.informationForFlights = informationForFlights;
     grid.DataContext           = informationForFlights;
     if (isArrive)
     {
         titleTB.Text = "Информация по прилету:";
     }
     else
     {
         titleTB.Text = "Информация по вылету:";
     }
 }