blob: 12106fe6e9ad4ece22d76e532f9c9a7bb1087ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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();
}
}
}
|