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 Metis.AutoAnalysis { public partial class AddUser : Form { public AddUser() { InitializeComponent(); } public Action CallOK; private void btnOK_Click(object sender, EventArgs e) { CallOK?.Invoke(txbName.Text); Close(); } private void btnCancel_Click(object sender, EventArgs e) { Close(); } } }