74 lines
1.5 KiB
C#
74 lines
1.5 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 demo25052026
|
|
{
|
|
public partial class UCTovar : UserControl
|
|
{
|
|
Form FormClose { get; set; }
|
|
public UCTovar(Form form)
|
|
{
|
|
FormClose = form;
|
|
InitializeComponent();
|
|
foreach (Control i in this.Controls)
|
|
{
|
|
i.Click += Photo_Click;
|
|
}
|
|
}
|
|
|
|
private void Photo_Click(object sender, EventArgs e)
|
|
{
|
|
FormClose.Hide();
|
|
Form2 form2 = new Form2(int.Parse(this.Name));
|
|
form2.ShowDialog();
|
|
}
|
|
|
|
private void textBox1_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void Skidka_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void textBox2_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void textBox3_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void textBox4_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void textBox5_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void textBox6_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void textBox7_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|