MyDiplom/MainPage.xaml.cs

32 lines
547 B
C#
Raw Normal View History

2025-04-10 15:34:02 +03:00
using CommunityToolkit.Maui.Views;
using MyDiplom.ViewModels;
2025-03-14 09:56:57 +03:00
namespace MyDiplom
2025-03-07 11:09:52 +03:00
{
public partial class MainPage : ContentPage
{
int count = 0;
public MainPage()
{
InitializeComponent();
2025-03-14 09:56:57 +03:00
this.BindingContext = new UserViewModels();
2025-03-07 11:09:52 +03:00
}
2025-04-10 15:34:02 +03:00
private void OnButtonClicked(object sender, EventArgs e)
{
var buyPopup = new BuyPage();
this.ShowPopup(buyPopup);
2025-04-14 12:49:39 +03:00
}
private async void UsersButtonClicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new UsersPage());
}
2025-03-07 11:09:52 +03:00
}
}