private void AddDroppedSamuraiToBattle(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(typeof(Samurai))) { var samurai = e.Data.GetData(typeof(Samurai)) as Samurai; var samuraiBattle = new SamuraiBattle { Battle = _currentBattle, Samurai = samurai }; _repo.AddSamuraiBattle(samuraiBattle); _availableSamurais.Remove(samurai); NoteSamuraiMove(); } }