/// <summary> /// Genère les bandeaux de paths /// </summary> /// <param name="folders"></param> /// <returns></returns> private async Task GeneratePaths(GameBandeauV gameBand, MvGame game) { Debug.WriteLine($"[GeneratePaths] Creation of the banner for {game.Title}"); boxLog.Text += $"Creation of the banner for { game.Title}" + Environment.NewLine; //int largeurBandeau = AnalyseVPrinciple(game.GetPaths); //largeurBandeau = 850; foreach (var pathO in game.GetPaths) { Debug.WriteLine($"[GeneratePaths] Path {pathO.Type}: {pathO.Original_RLink}"); if (string.IsNullOrEmpty(pathO.Original_RLink)) { continue; } DualBandV dbV = StylePaths(pathO.Type, PathsWidth); gameBand.flp1.Controls.Add(dbV); dbV.ucPaths21.RelatPath = pathO.Original_RLink; dbV.ucPaths21.FullPath = pathO.Original_HLink; dbV.ucPaths22.RelatPath = pathO.Destination_RLink; dbV.ucPaths22.FullPath = pathO.Destination_HLink; } gameBand.Resize_Me(); // games.Add(bdTmp); }
/// <summary> /// Création des bandeaux de titre /// </summary> /// <param name="aMvGames"></param> private async Task GenerateTitles(MvGame[] aMvGames) { boxLog.Text += @"Creation of data graphic forms" + Environment.NewLine; Debug.WriteLine("[CGamePaths] GenerateTitles"); Debug.Indent(); flpGames.Controls.Clear(); foreach (var mvGame in aMvGames) { /* * if (!cbHidden.Checked && mvGame.Hide) * { * Debug.WriteLine($"[GenerateTitles] {mvGame.Title} hidden => pass"); * continue; * }*/ toolStripStatusLabel1.Text = $"Création of bandeau: '{mvGame.Title}'"; Debug.WriteLine($"[GenerateTitles] Creation of the '{mvGame.Title}' banner"); GameBandeauV bdTmp = StyleTitles(mvGame.Id); bdTmp.Objet = mvGame; bdTmp.Title = $" {mvGame.Title}"; if (mvGame.Hide) { bdTmp.Title += " (Hidden)"; } if (mvGame.Broken) { bdTmp.Title += " (Broken)"; } bdTmp.Resize_Me(); mvGame.Valide = CheckGame(mvGame); bdTmp.ShowVerif(mvGame.Valide); flpGames.Controls.Add(bdTmp); //bdTmp.Dock = DockStyle.Top; flpGames.Refresh(); //lBandeaux.Add(bdTmp); } StyleMainFLP(ContRolledWidth); SetMainWindow(); Debug.Unindent(); }