-
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
ecdc9a0
commit 979ddbf
Showing
10 changed files
with
772 additions
and
392 deletions.
There are no files selected for viewing
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
Binary file not shown.
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
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,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Windows.Forms; | ||
|
||
namespace UnitaleFontMaker | ||
{ | ||
public partial class FormInput : Form | ||
{ | ||
public bool done; | ||
public string text; | ||
|
||
public FormInput(string title, string description) | ||
{ | ||
InitializeComponent(); | ||
|
||
Text = title; | ||
label1.Text = description; | ||
} | ||
|
||
private void btnOK_Click(object sender, EventArgs e) | ||
{ | ||
done = true; | ||
text = textBox1.Text; | ||
} | ||
|
||
private void btnCancel_Click(object sender, EventArgs e) | ||
{ | ||
done = true; | ||
text = null; | ||
} | ||
|
||
|
||
} | ||
|
||
public class InputDialog | ||
{ | ||
public static string Show(string title, string description) | ||
{ | ||
FormInput form = new FormInput(title, description); | ||
while (!form.done) { }; | ||
return form.text; | ||
} | ||
} | ||
} |
Oops, something went wrong.