diff --git a/BuyPage.xaml b/BuyPage.xaml
new file mode 100644
index 0000000..8abf486
--- /dev/null
+++ b/BuyPage.xaml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/BuyPage.xaml.cs b/BuyPage.xaml.cs
new file mode 100644
index 0000000..2bacdfa
--- /dev/null
+++ b/BuyPage.xaml.cs
@@ -0,0 +1,9 @@
+namespace MyDiplom;
+
+public partial class BuyPage : ContentView
+{
+ public BuyPage()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/MainPage.xaml b/MainPage.xaml
index e8541fd..3362a34 100644
--- a/MainPage.xaml
+++ b/MainPage.xaml
@@ -2,7 +2,7 @@
-
+
@@ -16,18 +16,35 @@
-
+ Background="black"
+ HeightRequest="80"
+ HorizontalOptions="Fill" >
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -36,7 +53,7 @@
-
+
@@ -60,8 +77,8 @@
-
-
@@ -99,14 +116,14 @@
-
+
-
+
@@ -137,35 +154,35 @@
-
+
-
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+
@@ -191,8 +208,8 @@
-
-
+
+
@@ -220,9 +237,9 @@
-
-
-
+
+
+
@@ -249,8 +266,8 @@
-
-
+
+
@@ -285,13 +302,9 @@
-
-
-
-
-
-
-
+
+
+
diff --git a/MainPage.xaml.cs b/MainPage.xaml.cs
index eceec5b..5d16e7d 100644
--- a/MainPage.xaml.cs
+++ b/MainPage.xaml.cs
@@ -1,4 +1,6 @@
-namespace MyDiplom
+using MyDiplom.ViewModels;
+
+namespace MyDiplom
{
public partial class MainPage : ContentPage
{
@@ -7,6 +9,8 @@
public MainPage()
{
InitializeComponent();
+
+ this.BindingContext = new UserViewModels();
}
diff --git a/Models/Users.cs b/Models/Users.cs
new file mode 100644
index 0000000..a90408e
--- /dev/null
+++ b/Models/Users.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MyDiplom.Models
+{
+ public class ApplicationUser
+ {
+ public string? DisplayName { get; set; }
+ public decimal Balance { get; set; } = 0;
+ public string? InvitedUserId { get; set; }
+ }
+}
diff --git a/MyDiplom.csproj b/MyDiplom.csproj
index 29d7ae7..ed9a8ab 100644
--- a/MyDiplom.csproj
+++ b/MyDiplom.csproj
@@ -63,4 +63,10 @@
+
+
+ MSBuild:Compile
+
+
+
diff --git a/MyDiplom.csproj.user b/MyDiplom.csproj.user
index 891593c..01c533b 100644
--- a/MyDiplom.csproj.user
+++ b/MyDiplom.csproj.user
@@ -6,6 +6,11 @@
Windows Machine
+
+ Designer
+
+
+
Designer
diff --git a/ViewModels/BaseViewModels.cs b/ViewModels/BaseViewModels.cs
new file mode 100644
index 0000000..1fe893d
--- /dev/null
+++ b/ViewModels/BaseViewModels.cs
@@ -0,0 +1,41 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+
+namespace MyDiplom.ViewModels
+{
+ public class BaseViewModel : INotifyPropertyChanged
+ {
+ bool isBusy = false;
+ public bool IsBusy
+ {
+ get { return isBusy; }
+ set { SetProperty(ref isBusy, value); }
+ }
+
+ protected bool SetProperty(ref T backingStore, T value,
+ [CallerMemberName] string propertyName = "",
+ Action onChanged = null)
+ {
+ if (EqualityComparer.Default.Equals(backingStore, value))
+ return false;
+
+ backingStore = value;
+ onChanged?.Invoke();
+ OnPropertyChanged(propertyName);
+ return true;
+ }
+
+ #region INotifyPropertyChanged
+ public event PropertyChangedEventHandler PropertyChanged;
+ protected void OnPropertyChanged([CallerMemberName] string propertyName = "")
+ {
+ var changed = PropertyChanged;
+ if (changed == null)
+ return;
+
+ changed.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+ #endregion
+ }
+
+}
diff --git a/ViewModels/UserViewModels.cs b/ViewModels/UserViewModels.cs
new file mode 100644
index 0000000..911ad51
--- /dev/null
+++ b/ViewModels/UserViewModels.cs
@@ -0,0 +1,19 @@
+using MyDiplom.Models;
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MyDiplom.ViewModels
+{
+ public class UserViewModels:BaseViewModel
+ {
+ public ApplicationUser User { get; set; } = new ApplicationUser();
+ public UserViewModels()
+ {
+ User = new ApplicationUser { DisplayName = "Вася", Balance = 10.0m };
+ }
+ }
+}