private string getData()
        {
            EnterInfo frmDialog = new EnterInfo();
              frmDialog.ShowDialog(this);

              String input = "";
              if (frmDialog.DialogResult == DialogResult.OK)
              {
            input = frmDialog.txtInput.Text;
            if (String.IsNullOrEmpty(input))
            {
              _PrintToOutput("Error: nothing entered");
              return null;
            }
              }
              input.Replace(" ", String.Empty);
              return input;
        }
        private void btnTest_Click(object sender, EventArgs e)
        {
            var frmDialog = new EnterInfo();
              frmDialog.ShowDialog(this);
              //var frmDialog = new SelectItem();
              //frmDialog.Show(this);

              if (frmDialog.DialogResult == DialogResult.OK)
              {
            _PrintToOutput("OK");
              }
              else
              {
            _PrintToOutput("Cancelled");
              }
        }