mirror of
https://github.com/ultrasn0w/app.git
synced 2025-12-16 01:49:52 +01:00
Images
This commit is contained in:
12
APP/Main.cs
12
APP/Main.cs
@@ -6,9 +6,9 @@ namespace APP;
|
||||
|
||||
public partial class Main : Form
|
||||
{
|
||||
private readonly ImageList _imageListSeason;
|
||||
private Auth? _auth;
|
||||
private bool _authSucc;
|
||||
private ImageList _imageListSeason;
|
||||
private List<Anime>? _seasonAnime;
|
||||
private User? _user;
|
||||
|
||||
@@ -16,7 +16,9 @@ public partial class Main : Form
|
||||
{
|
||||
InitializeComponent();
|
||||
_imageListSeason = new ImageList();
|
||||
_imageListSeason.ImageSize = new Size(128, 200);
|
||||
Load += OnLoadEv;
|
||||
LogBoy.AddToLog("Hi");
|
||||
}
|
||||
|
||||
private async void OnLoadEv(object? sender, EventArgs e)
|
||||
@@ -61,14 +63,18 @@ public partial class Main : Form
|
||||
}
|
||||
else
|
||||
{
|
||||
var count = 0;
|
||||
foreach (var anime in _seasonAnime)
|
||||
{
|
||||
//_imageListSeason.Images.Add("", new )
|
||||
_imageListSeason.Images.Add(await WebBoy.DownloadImage(anime.ImageLarge));
|
||||
listViewSeason.Items.Add(new ListViewItem
|
||||
{
|
||||
Text = anime.Title
|
||||
Text = anime.Title,
|
||||
ImageIndex = count++
|
||||
});
|
||||
}
|
||||
|
||||
listViewSeason.LargeImageList = _imageListSeason;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user