private void OnMouseUp(object sender, MouseEventArgs e)
        {
            if (sender is TextBox txt)
            {
                var frm = new frmNumpad(txt);
                frm.SetLocation(txt.Right, txt.Top);

                frm.FormClosed += (s, ea) =>
                {
                    var dto = new PrinterInfoDto();

                    if (!String.IsNullOrEmpty(txtPrinterSpeed.Text))
                    {
                        if (Int32.TryParse(txtPrinterSpeed.Text, out var i))
                        {
                            dto.PrinterConveyorSpeed = i;
                        }
                    }

                    if (!String.IsNullOrEmpty(txtInfeedSpeed.Text))
                    {
                        if (Int32.TryParse(txtInfeedSpeed.Text, out var j))
                        {
                            dto.InfeedSpeed = j;
                        }
                    }

                    _pviController.SetVariables(dto);
                };

                frm.Show();
            }
        }
 public void SetVariables(PrinterInfoDto dto)
 {
     _application.SetVariables(dto);
 }