🔒 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]
 
Status
Not open for further replies.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
414
Guests online
3,786
Total visitors
4,200

Forum statistics

Threads
2,308,633
Posts
29,186,325
Members
1,192,128
Latest member
pampano
Back
Top