Example #1
0
        /*
         *  Методы
         */

        #region public AircraftFlight()
        /// <summary>
        /// Создает воздушное судно без дополнительной информации
        /// </summary>
        public AircraftFlight()
        {
            _atlbRecordType     = AtlbRecordType.Flight;
            ItemId              = -1;
            SmartCoreObjectType = SmartCoreType.AircraftFlight;

            FlightDate             = DateTime.Today;
            Cycles                 = 1;
            FlightCrewRecords      = new List <FlightCrewRecord>();
            FlightPassengerRecords = new List <FlightPassengerRecord>();
            FlightCargoRecords     = new List <FlightCargoRecord>();

            Highlight = Highlight.White;

            /*       FuelTankCondition newTank = new FuelTankCondition();
             * newTank.OnBoard = 480.00;
             * newTank.Remaining = 450.50;
             * newTank.Correction = 330.30;
             * FuelTankCollection.Add(newTank);
             *
             * FuelTankCondition newTank1 = new FuelTankCondition();
             * newTank1.OnBoard = 780.00;
             * newTank1.Remaining = 750.50;
             * newTank1.Correction = 630.30;
             *
             * FuelTankCollection.Add(newTank1);*/
        }
        private void InvokeRecordTypeChanget(AtlbRecordType e)
        {
            ValueChangedEventHandler handler = RecordTypeChanget;

            if (handler != null)
            {
                handler(new ValueChangedEventArgs(e));
            }
        }
Example #3
0
        ///<summary>
        /// Создает страницу для отображения информации об одной директиве
        ///</summary>
        /// <param name="atlb">Директива</param>
        ///<param name="aircraft"></param>
        public FlightScreenLight(ATLB atlb, Aircraft aircraft, AtlbRecordType type = AtlbRecordType.Flight) : this()
        {
            if (atlb == null)
            {
                throw new ArgumentNullException("atlb", "Argument cannot be null");
            }
            _currentAtlb    = atlb;
            CurrentAircraft = aircraft;
            _type           = type;

            #region ButtonPrintContextMenu

            //buttonPrintMenuStrip = new ContextMenuStrip();
            //itemPrintReportRecords = new ToolStripMenuItem { Text = "Records" };
            //itemPrintReportHistory = new ToolStripMenuItem { Text = "Compliance history" };
            //buttonPrintMenuStrip.Items.AddRange(new ToolStripItem[] { itemPrintReportRecords, itemPrintReportHistory });

            //ButtonPrintMenuStrip = buttonPrintMenuStrip;
            #endregion

            AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoWorkWithCreateFlight;
            AnimatedThreadWorker.DoWork -= AnimatedThreadWorkerDoWork;
            AnimatedThreadWorker.DoWork += AnimatedThreadWorkerDoWorkWithCreateFlight;
        }
Example #4
0
 public void EnableControls(AtlbRecordType atlbRecordType)
 {
     dateTimePickerOut.Enabled         = dateTimePickerIn.Enabled = textBlock.Enabled =
         dateTimePickerTakeOff.Enabled = dateTimePickerLDG.Enabled =
             textFlight.Enabled        = atlbRecordType != AtlbRecordType.Maintenance;
 }
Example #5
0
 public ValueChangedEventArgs(AtlbRecordType value)
 {
     Value = value;
 }