コード例 #1
0
        private IEnumerable <InterfaceLogicConnector> ExtractData()
        {
            InterfaceLogicConnector ILC = new InterfaceLogicConnector(filePath);

            while (true)
            {
                yield return(ILC);

                ILC.Iterate();
            }
        }
コード例 #2
0
 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();
 }