public void DeleteFleet()
        {
            if (SelectFleets.Count() == 0 || DisplayFleet == null)
            {
                return;
            }

            int index = SelectFleets
                        .OrderBy(x => x.Time)
                        .Select((y, i) => new { Fleet = y, Index = i })
                        .Where(f => f.Fleet.Time.Equals(DisplayFleet.Time))
                        .First().Index;

            OrganizationFleet fleet = SelectFleets
                                      .OrderBy(x => x.Time)
                                      .Where((d, i) => i == index - 1 || i == index + 1)
                                      .FirstOrDefault();

            var fleets = SelectFleets.OrderBy(x => x.Time).ToList();

            fleets.RemoveAt(index);

            _OrganizationFleets.Fleets = fleets;

            SelectFleets = new ObservableCollection <OrganizationFleet>(_OrganizationFleets.Fleets);

            DisplayFleet = fleet;

            Task.Run(
                () => {
                SaveFile();
            });
        }
        public void AddFleet(String flag)
        {
            // 連合艦隊かどうか
            bool isCombined = Convert.ToBoolean(flag);
            var  newFleet   = new OrganizationFleet()
            {
                FirstFleet      = Fleet2OrganizationShipInfo(1),
                SecondFleet     = isCombined ? Fleet2OrganizationShipInfo(2) : null,
                FirstFleetName  = KanColleClient.Current.Homeport.Organization.Fleets[1].Name,
                SecondFleetName = isCombined ? KanColleClient.Current.Homeport.Organization.Fleets[2].Name : null,
                Time            = DateTime.Now
            };

            _OrganizationFleets.Fleets.Add(newFleet);

            SelectFleets = new ObservableCollection <OrganizationFleet>(_OrganizationFleets.Fleets);

            DisplayFleet = newFleet;

            Task.Run(() => {
                SaveFile();
            });
        }