diff options
author | Pixel <pixel@nobis-crew.org> | 2010-06-10 15:30:25 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-06-10 15:30:25 -0700 |
commit | dd86dcc28629225881de61f63394132eb0cb0e2a (patch) | |
tree | 26bcfb8c0e64117e9a4489c308adf9ca7940319f /script-editor/CommentForm.cs | |
parent | c07307cb655e8449bb05052ec28993857ac27836 (diff) | |
parent | bb7745a988db1c4be68e4b12b51e16a7e5a21f8e (diff) |
Merge branch 'master' of ssh+git://git.grumpycoder.net/pub/repo.git/VP-hack
Diffstat (limited to 'script-editor/CommentForm.cs')
-rw-r--r-- | script-editor/CommentForm.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/script-editor/CommentForm.cs b/script-editor/CommentForm.cs new file mode 100644 index 0000000..12106fe --- /dev/null +++ b/script-editor/CommentForm.cs @@ -0,0 +1,28 @@ +using System.Windows.Forms; + +namespace VPScriptEditor +{ + public partial class CommentForm : Form + { + public string Comment + { + get + { + return richTxtComment.Text.Length > 0 ? richTxtComment.Text : null; + } + } + + public CommentForm(int pointerNb, string comment) + { + InitializeComponent(); + + richTxtComment.Text = comment == null ? "" : comment; + this.Text = "Comment for pointer " + (pointerNb + 1); + } + + private void bttnOK_Click(object sender, System.EventArgs e) + { + Close(); + } + } +} |