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; using WinFormControl; namespace ButcherFactory.Dialogs { public partial class SelectBillStateDialog : Form { public Tuple Result; public SelectBillStateDialog() { InitializeComponent(); } void BtnClick(object sender, EventArgs e) { var btn = sender as UButton; Result = new Tuple(btn.Text, Convert.ToInt32(btn.Tag)); DialogResult = DialogResult.OK; this.Close(); } } }