private IEnumerable <InterfaceLogicConnector> ExtractData() { InterfaceLogicConnector ILC = new InterfaceLogicConnector(filePath); while (true) { yield return(ILC); ILC.Iterate(); } }
private void UpdateInfo(InterfaceLogicConnector ILC) { ArrivedInRecentFlight.Text = ILC.ArrInRecentFlight.ToString(); ArrivedInRecentDay.Text = ILC.ArrInRecentDay.ToString(); ArrivedSummary.Text = ILC.ArrSummary.ToString(); DeparturedInRecentDay.Text = ILC.DepInRecentDay.ToString(); DeparturedInRecentFlight.Text = ILC.DepInRecentFlight.ToString(); DeparturedSummary.Text = ILC.DepSummary.ToString(); RecentFlightRoute.Text = ILC.RouteOfRecentFlight; RecentFlightTime.Text = ILC.TimeOfRecentFlight; CurrentTime.Text = ILC.CurrentTime.ToString(); if (ILC.RecentFlightDirection == Direction.In) { RecentFlightLabel.Text = "Время прибытия"; } else { RecentFlightLabel.Text = "Время вылета"; } UpdateLayout(); }