BattleInfoPlugin.ViewModels.Enemies.EnemyFleetViewModel.DeleteEnemy C# (CSharp) Method

DeleteEnemy() public method

public DeleteEnemy ( ) : void
return void
        public void DeleteEnemy()
        {
            System.Diagnostics.Debug.WriteLine($"DeleteEnemy:{this.Key}");
            if (MessageBoxResult.OK != MessageBox.Show(
                $"{this.Name}(key:{this.Key})のデータを削除してよろしいですか?",
                "確認",
                MessageBoxButton.OKCancel,
                MessageBoxImage.Question))
                return;

            foreach (var key in this.Fleets.Keys)
            {
                this.ParentCell.ParentMap.WindowViewModel.RemoveEnemy(key);
            }
        }