Files
xxcpzs/XXCpzs/Views/PageCustomer.xaml.cs
2020-04-03 11:55:02 +08:00

35 lines
919 B
C#

using System;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using XXCpzs.Models;
using XXCpzs.ViewModels;
namespace XXCpzs.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class PageCustomer : ContentPage
{
private CustomerViewModel ViewModel;
public PageCustomer(UserInfo userInfo)
{
InitializeComponent();
this.BindingContext = ViewModel = new CustomerViewModel();
}
public void OnMore(object sender, EventArgs e)
{
var mi = ((MenuItem)sender);
DisplayAlert("More Context Action", mi.CommandParameter + " more context action", "OK");
}
public void OnDelete(object sender, EventArgs e)
{
var mi = ((MenuItem)sender);
DisplayAlert("Delete Context Action", mi.CommandParameter + " delete context action", "OK");
}
}
}