-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml.cs
41 lines (34 loc) · 918 Bytes
/
MainPage.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.Collections.ObjectModel;
namespace MauiApp1;
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
BindingContext = this;
for (int i = 0; i < 10; i++)
{
TestCBs.Add(new TestCB
{
Title = "Mr.Robot",
Image = "https://flxt.tmsimg.com/assets/p11710290_b1t_v8_aa.jpg",
Hours = new List<string>
{
"10:20",
"15:20",
"10:20",
"15:20",
"10:20",
"15:20",
}
});
}
}
public ObservableCollection<TestCB> TestCBs { get; set; } = new();
}
public class TestCB
{
public string Title { get; set; }
public string Image { get; set; }
public List<string> Hours { get; set; }
}