MO
Size: a a a
MO
Ä
MO
VK
Д
VK
Д
AM
AM
АН
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace zwww
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
int count = 0;
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
}
void Butz(object sender, System.EventArgs e)
{
(sender as Button).Background = "Red";
}
}
}
MO
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace zwww
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
int count = 0;
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
}
void Butz(object sender, System.EventArgs e)
{
(sender as Button).Background = "Red";
}
}
}
АН
АН
MO
MO
АН
АН
<Button x:Name="btz" Text="Click Me" Clicked="Button_Clicked" />
<Button Text="Change" BackgroundColor="Yellow" Clicked="Butz"/>
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
}
void Butz(object sender, System.EventArgs e)
{
btz.BackgroundColor = Color.Red;
}
}
}
MO
<Button x:Name="btz" Text="Click Me" Clicked="Button_Clicked" />
<Button Text="Change" BackgroundColor="Yellow" Clicked="Butz"/>
void Button_Clicked(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
}
void Butz(object sender, System.EventArgs e)
{
btz.BackgroundColor = Color.Red;
}
}
}
АН
<Button x:Name="btz" Text="Click Me" Clicked="Btz" />
<Button Text="Change" BackgroundColor="Yellow" Clicked="Butz"/>
void btz(object sender, System.EventArgs e)
{
count++;
((Button)sender).Text = $"You clicked {count} times.";
}
void Butz(object sender, System.EventArgs e)
{
btz.BackgroundColor = Color.Red;
}
}
}
АН