private void SetPeriod()
        {
            var Services = new BindableCollection <ServiceModel>(ServicesDataAccess.GetServicesPerTimetable(TimetableId));

            GraphCanvasSettings.StartTime = (Services.Min(x => x.StartTime) / 60) * 60;
            GraphCanvasSettings.EndTime   = (Services.Max(x => x.EndTime) / 60 + 1) * 60;
        }
Beispiel #2
0
 internal void UpdateStatus()
 {
     SlowestShipSpeed = ships.Count > 0 ? ships.Min(s => s.Speed) : ShipSpeed.None;
     SupplyingCost    = Ships.Sum(s => s.SupplyingCost);
     RepairingCost    = Ships.Sum(s => s.RepairingCost);
     AirFightPower    = Ships.Sum(s => s.AirFightPower);
     SimpleLos        = Ships.Sum(s => s.LineOfSight.Displaying);
     EffectiveLoS     = Ships.Sum(s => s.EffectiveLoS) + (2 * (6 - Ships.Count) - Math.Ceiling(0.4 * owner.Admiral.Leveling.Level));
     Status           = CheckFleetStatus();
 }