-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
742ef6c
commit 6683a27
Showing
8 changed files
with
3,660 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Diagnostics; | ||
using System.Windows.Forms; | ||
|
||
namespace Recipsio | ||
{ | ||
public partial class RecipeDirectionForm : Form | ||
{ | ||
public MainForm MF; | ||
public Toolbox TB; | ||
public RecipeDirectionForm(MainForm MF, Toolbox TB) | ||
{ | ||
this.MF = MF; | ||
this.TB = TB; | ||
InitializeComponent(); | ||
KeyPreview = true; | ||
} | ||
private void Form_KeyDown(object Sender, KeyEventArgs KeyEvent) | ||
{ | ||
if (KeyEvent.KeyCode == Keys.Escape) | ||
{ | ||
Close(); | ||
} | ||
} | ||
|
||
private void Submit_Recipe_Direction_Click(object sender, System.EventArgs e) | ||
{ | ||
MF.RecipeDirections.Items.Add(RecipeDirection.Text); | ||
Close(); | ||
} | ||
} | ||
} |
Oops, something went wrong.