diff options
author | Jes <jes> | 2010-01-14 19:01:07 +0100 |
---|---|---|
committer | Jes <jes> | 2010-01-14 19:01:07 +0100 |
commit | 78455c91b09616e2ff6713adbd6d44463a80608b (patch) | |
tree | adf431be0dde10a2e7121348991893fd306de83a /script-editor/CommentForm.cs | |
parent | 49b3d926ea33f486468f0bc855585968eacca124 (diff) |
Mise à jour de l'éditeur
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(); + } + } +} |