private void PasteVisualContender() { // Extract Contender ID int ContID = VisualLeagueEvent.ClipBoardValue; // check if contender is allready belongs to this bracket if (Bracket.ContendersList.Any(x => x.SystemID == ContID)) { return; } // Extract cont VisualContender visualcont = VisualLeagueEvent.AllVisualContenders.Where(x => x.Contender.SystemID == ContID).Select(x => x).Single(); // check if the contender score is suitable for bracket of not promt the user if (CheckContTransffer(visualcont) == false) { return; } // add to fpanel Vbracket.Controls.Add(visualcont.Vcontender); VisualLeagueEvent.AddContender(ContID, this); }
public static void AddUnplacedContender(VisualContender cont) { VisualUnplacedBracketsList.Add(cont); }