language version degraded to 9.0

This commit is contained in:
2022-02-25 13:38:42 +08:00
parent 9a6011c3d8
commit e012110b00
32 changed files with 1287 additions and 1262 deletions

View File

@ -2,43 +2,44 @@ using Billing.UI;
using System;
using Xamarin.Forms;
namespace Billing.Views;
public partial class BillPage : BillingPage
namespace Billing.Views
{
private static readonly BindableProperty SelectedDateProperty = BindableProperty.Create(nameof(SelectedDate), typeof(DateTime), typeof(BillPage));
public DateTime SelectedDate
public partial class BillPage : BillingPage
{
get => (DateTime)GetValue(SelectedDateProperty);
set => SetValue(SelectedDateProperty, value);
private static readonly BindableProperty SelectedDateProperty = BindableProperty.Create(nameof(SelectedDate), typeof(DateTime), typeof(BillPage));
public DateTime SelectedDate
{
get => (DateTime)GetValue(SelectedDateProperty);
set => SetValue(SelectedDateProperty, value);
}
public Command AddBilling { get; }
public BillPage()
{
AddBilling = new Command(OnAddBilling);
InitializeComponent();
billingDate.SetDateTime(DateTime.Now);
}
private void OnDateSelected(object sender, DateEventArgs e)
{
SelectedDate = e.Date;
// TODO: while selecting date
}
private void OnTitleDateLongPressed(object sender, EventArgs e)
{
billingDate.SetDateTime(DateTime.Now);
}
private async void OnAddBilling()
{
await Navigation.PushAsync(new AddBillPage());
}
}
public Command AddBilling { get; }
public BillPage()
{
AddBilling = new Command(OnAddBilling);
InitializeComponent();
billingDate.SetDateTime(DateTime.Now);
}
private void OnDateSelected(object sender, DateEventArgs e)
{
SelectedDate = e.Date;
// TODO: while selecting date
}
private void OnTitleDateLongPressed(object sender, EventArgs e)
{
billingDate.SetDateTime(DateTime.Now);
}
private async void OnAddBilling()
{
await Navigation.PushAsync(new AddBillPage());
}
}
}