-
Notifications
You must be signed in to change notification settings - Fork 0
/
MauiProgram.cs
136 lines (107 loc) · 4.74 KB
/
MauiProgram.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
namespace Pizza
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
//CreateTemp();
return builder.Build();
}
private static async void CreateTemp()
{
Models.Product product = new Models.Product();
product.Cost = 590;
product.Count = 1;
product.ImagePath = "pizza/student.png";
product.Name = "Студенческая";
product.Description = "Томатный соус, моцарелла, ветчина, салями, шампиньоны\r\n30 см, 600 г\r\n";
await product.Save();
product = new Models.Product();
product.Cost = 480;
product.Count = 1;
product.ImagePath = "pizza/salyami.png";
product.Name = "Салями";
product.Description = "Томатный соус, моцарелла, салями\r\n30 см, 570 г\r\n";
await product.Save();
product = new Models.Product();
product.Cost = 550;
product.Count = 1;
product.ImagePath = "pizza/vetchina.png";
product.Name = "Ветчина и грибы";
product.Description = "Томатный соус, моцарелла, ветчина, шампиньоны \r\n30 см, 620 г\r\n";
await product.Save();
product = new Models.Product();
product.Cost = 500;
product.Count = 1;
product.ImagePath = "pizza/chesse.png";
product.Name = "Сырная";
product.Description = "Моцарелла, брынза, чесночное масло\r\n30 см, 560 г\r\n";
await product.Save();
product = new Models.Product();
product.Cost = 90;
product.Count = 1;
product.ImagePath = "pizza/dushes.png";
product.TypeProduct = Models.TypeProduct.Напитки;
product.Name = "Напиток";
product.Description = "Черноголовка Дюшес 0,5 л";
await product.Save();
product = new Models.Product();
product.Cost = 90;
product.Count = 1;
product.TypeProduct = Models.TypeProduct.Напитки;
product.ImagePath = "pizza/cola.png";
product.Name = "Напиток";
product.Description = "Черноголовка Кола 0,5 л";
await product.Save();
product = new Models.Product();
product.Cost = 130;
product.Count = 1;
product.TypeProduct = Models.TypeProduct.Напитки;
product.ImagePath = "pizza/mors_brusnich.png";
product.Name = "Морс";
product.Description = "Морс брусничный 0,45 л";
await product.Save();
product = new Models.Product();
product.Cost = 130;
product.Count = 1;
product.TypeProduct = Models.TypeProduct.Напитки;
product.ImagePath = "pizza/mors_smorod.png";
product.Name = "Морс";
product.Description = "Морс черная смородина 0,45 л";
await product.Save();
product = new Models.Product();
product.Cost = 50;
product.Count = 1;
product.TypeProduct = Models.TypeProduct.Соусы;
product.ImagePath = "pizza/syr.png";
product.Name = "Соус";
product.Description = "Сырный соус 40 г";
await product.Save();
product = new Models.Product();
product.Cost = 50;
product.Count = 1;
product.TypeProduct = Models.TypeProduct.Соусы;
product.ImagePath = "pizza/chesnok.png";
product.Name = "Соус";
product.Description = "Чесночный соус 40 г";
await product.Save();
product = new Models.Product();
product.Cost = 50;
product.Count = 1;
product.TypeProduct = Models.TypeProduct.Соусы;
product.ImagePath = "pizza/barbeku.png";
product.Name = "Соус";
product.Description = "Соус барбекю 40 г";
await product.Save();
product = new Models.Product();
}
}
}