🔒 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-

Online now

Members online
1,002
Guests online
986
Total visitors
1,988

Forum statistics

Threads
2,275,833
Posts
28,965,913
Members
1,231,957
Latest member
CholitoPo
Back
Top