public int CreateTestRecipe(Recipe recipe) { TestRecipe tr = new TestRecipe(recipe, Volume); if (tr.ShowDialog() == DialogResult.OK) { if (tr.cancelGame) { tr.Close(); return(-1); } if (tr.exitGame) { tr.Close(); return(-2); } if (tr.right) { tr.Close(); return(1); } else { tr.Close(); return(0); } } else { return(0); } }