🔒 Closed Create a Simple Field Checker

Status
Not open for further replies.
meron Kang APK nito paps badly needed
Ito na yung source code:


[CODE lang="csharp" title="MainPage.xaml"]<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:App4"
x:Class="App4.MainPage">

<StackLayout>
<Entry x:Name="num1" Placeholder=" " />
<Entry x:Name="num2" Placeholder=" " />

<Button x:Name="BtnClr" Text="CHECK" Grid.Row="5" Grid.Column="1" Clicked="BtnClr_Clicked" />


</StackLayout>

</ContentPage>
[/CODE]

[CODE lang="csharp" title="MainPage.xaml.cs"]using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace App4
{
// Learn more about making custom code visible in the Xamarin.Forms previewer
// by visiting https://aka.ms/xamarinforms-previewer
[DesignTimeVisible(true)]
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}

private void BtnClr_Clicked(object sender, EventArgs e)
{
if (num1.Text == num2.Text)
{
DisplayAlert("RESULT:", "THE SAME", "OK");
}
else
{
DisplayAlert("RESULT:", "NOT THE SAME", "OK");
}

}
}
}
[/CODE]
 
For iOS/Android:
You do not have permission to view the full content of this post. Log in or register now.
Just hit Run
1646582455112.webp
 
Status
Not open for further replies.

About this Thread

  • 25
    Replies
  • 3K
    Views
  • 7
    Participants
Last reply from:
Katipunero-

Trending Topics

Online now

Members online
1,188
Guests online
1,318
Total visitors
2,506

Forum statistics

Threads
2,287,032
Posts
29,041,944
Members
1,216,350
Latest member
left4bread
Back
Top