mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-17 01:44:45 +00:00
26 lines
553 B
C#
26 lines
553 B
C#
|
|
namespace Microsoft.ML.OnnxRuntime.Tests.MAUI
|
|||
|
|
{
|
|||
|
|
public partial class MainPage : ContentPage
|
|||
|
|
{
|
|||
|
|
int count = 0;
|
|||
|
|
|
|||
|
|
public MainPage()
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void OnCounterClicked(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
count++;
|
|||
|
|
|
|||
|
|
if (count == 1)
|
|||
|
|
CounterBtn.Text = $"Clicked {count} time";
|
|||
|
|
else
|
|||
|
|
CounterBtn.Text = $"Clicked {count} times";
|
|||
|
|
|
|||
|
|
SemanticScreenReader.Announce(CounterBtn.Text);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|