public MainWorkPlaceUC(InformationFlights informArrive, InformationFlights informDeparture) { InitializeComponent(); leftPanel.Content = new InformationForFlights(informArrive, true); rightPanel.Content = new InformationForFlights(informDeparture, false); CustomEvent.SignOrCloseDelegate(EndImitation, true); }
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); }
public InformationForFlights(InformationFlights informationForFlights, bool isArrive) { InitializeComponent(); this.informationForFlights = informationForFlights; grid.DataContext = informationForFlights; if (isArrive) { titleTB.Text = "Информация по прилету:"; } else { titleTB.Text = "Информация по вылету:"; } }