39 lines
756 B
C#
39 lines
756 B
C#
using CourseWork_EredavkinRA;
|
|
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 CourseWorkEreda;
|
|
|
|
public partial class FormInput : Form
|
|
{
|
|
public event Action<int>? PushClicked;
|
|
public FormInput()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void label1_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void buttonAdd_Click(object sender, EventArgs e)
|
|
{
|
|
int element = (int)numElement.Value;
|
|
PushClicked?.Invoke(element);
|
|
Close();
|
|
}
|
|
|
|
private void numElement_ValueChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|