public static bool getInput(ref string value, String descrip, String title) { fInput f = new fInput(); f.setTitle(title); f.setDescrip(descrip); f.setText(value); f.ShowDialog(); if (f.getOk()) { value = f.getText(); return true; } else { return false; } } /*