protected override void AnimatedThreadWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Cancelled)
     {
         return;
     }
     _directivesViewer.SetItemsArray(_itemsArray.ToArray());
     headerControl.PrintButtonEnabled = _directivesViewer.ItemsCount != 0;
     _directivesViewer.Focus();
 }
Exemple #2
0
        protected override void AnimatedThreadWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Cancelled)
            {
                return;
            }
            //TODO:(Evgenii Babak) создать метод для получения названия ATLB по FlightId
            var last = GlobalObjects.AircraftFlightsCore.GetLastAircraftFlight(CurrentAircraft.ItemId);

            if (last != null)
            {
                var lastAtlb = _itemsArray.GetItemById(last.ATLBId);
                labelDateAsOf.Text = lastAtlb != null ? "Current ATLB: " + lastAtlb : "";
            }
            _directivesViewer.SetItemsArray(_itemsArray.ToArray());
            headerControl.PrintButtonEnabled = _directivesViewer.ItemsCount != 0;
            _directivesViewer.Focus();
        }