KalkulatorISP-31rrrrr/source/repos/WindowsFormsApp2/Form1.cs
2025-11-11 14:18:33 +04:00

46 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.BackColor = Color.Red;
Form2 form2 = new Form2();
form2.ShowDialog();
this.Show();
}
private void button2_Click(object sender, EventArgs e)
{
this.BackColor = Color.Blue;
Form3 form3 = new Form3();
form3.ShowDialog();
this.Show();
}
private void button3_Click(object sender, EventArgs e)
{
this.BackColor = Color.Green;
Form4 form4 = new Form4();
form4.ShowDialog();
this.Show();
}
}
}