Public Member Functions | |
| CommentControl () | |
| Constructor, required for use of the control in the Designer. | |
| CommentControl (string id, string poster, string title, string text, DateTime date, int commentLevel) | |
| Overloaded constructor, for creating an instance with the data already filled out. For use with a comments container, which dynamically generates and place comment controls. | |
Public Attributes | |
| event CommentControlEventHandler | ReplyToMe |
| The event that is invoked when the lnkReply LinkLabel is clicked. | |
| event CommentControlEventHandler | DeleteMe |
| The event that is invoked when the lnkDelete LinkLabel is clicked. | |
| event CommentControlEventHandler | EditMe |
| The event that is invoked when the lnkEdit LinkLabel is clicked. | |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
| Clean up any resources being used. | |
Properties | |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("Wether the user is allowed to reply to this comment")] bool | CanReply [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("Wether the user is allowed to edit and delete this comment")] bool | CanEdit [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("The ID of the comment")] string | ID [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("The title of the comment")] string | Title [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("Who created the comment")] string | Poster [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("The text of the comment")] string | Comment [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("When was the comment created?")] DateTime | Date [get, set] |
|
[TypeConverter(typeof(CommentControl)), Category("Appearance"), Description("How deeply is the comment nested?")] int | CommentLevel [get, set] |
Private Member Functions | |
| void | lnkReply_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e) |
| Internal method which invokes the ReplyToMe event. | |
| void | lnkDelete_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e) |
| Internal method which invokes the DeleteMe event. | |
| void | lnkEdit_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e) |
| Internal method which invokes the EditMe event. | |
| void | InitializeComponent () |
| Required method for Designer support - do not modify the contents of this method with the code editor. | |
Private Attributes | |
| string | id |
| The contained comment's UniquelyIdentifiable ID. | |
| string | poster |
| Who creates the comment? | |
| string | title |
| The comment's title. | |
| string | text |
| The comment's text. | |
| DateTime | date |
| When was the comment made? | |
| int | commentLevel |
| How deeply the comment is nested. | |
| System.ComponentModel.IContainer | components = null |
| Required designer variable. | |
| System.Windows.Forms.Panel | panTop |
| System.Windows.Forms.Label | lblTime |
| System.Windows.Forms.Label | lblInfo |
| System.Windows.Forms.Panel | panBottom |
| System.Windows.Forms.LinkLabel | lnkDelete |
| System.Windows.Forms.LinkLabel | lnkEdit |
| System.Windows.Forms.LinkLabel | lnkReply |
| System.Windows.Forms.RichTextBox | txtComment |
| System.Windows.Forms.Panel | panContainer |
Static Private Attributes | |
| static int | nestingIndentation = 15 |
| How deeply do you indent each comment, value in pixels. | |
Definition at line 18 of file CommentControl.cs.
| CommentControls.CommentControl.CommentControl | ( | ) |
Constructor, required for use of the control in the Designer.
Definition at line 52 of file CommentControl.cs.
References CommentControls.CommentControl.InitializeComponent().
Here is the call graph for this function:

| CommentControls.CommentControl.CommentControl | ( | string | id, | |
| string | poster, | |||
| string | title, | |||
| string | text, | |||
| DateTime | date, | |||
| int | commentLevel | |||
| ) |
Overloaded constructor, for creating an instance with the data already filled out. For use with a comments container, which dynamically generates and place comment controls.
| id | The comment's UniquelyIdentifiable ID | |
| poster | Who created the comment? | |
| title | What is the comment's title? | |
| text | What is the actual comment? | |
| date | When was the comment created? | |
| commentLevel | How deeply is the comment nested? |
Definition at line 67 of file CommentControl.cs.
References CommentControls.CommentControl.InitializeComponent(), CommentControls.CommentControl.lblInfo, CommentControls.CommentControl.lblTime, CommentControls.CommentControl.nestingIndentation, CommentControls.CommentControl.panContainer, and CommentControls.CommentControl.txtComment.
Here is the call graph for this function:

| void CommentControls.CommentControl.lnkReply_LinkClicked | ( | object | sender, | |
| LinkLabelLinkClickedEventArgs | e | |||
| ) | [private] |
Internal method which invokes the ReplyToMe event.
| sender | Who called the method | |
| e | What arguments do we have |
Definition at line 195 of file CommentControl.cs.
References CommentControls.CommentControl.ReplyToMe.
Referenced by CommentControls.CommentControl.InitializeComponent().
Here is the caller graph for this function:

| void CommentControls.CommentControl.lnkDelete_LinkClicked | ( | object | sender, | |
| LinkLabelLinkClickedEventArgs | e | |||
| ) | [private] |
Internal method which invokes the DeleteMe event.
| sender | Who called the method | |
| e | What arguments do we have |
Definition at line 207 of file CommentControl.cs.
References CommentControls.CommentControl.DeleteMe.
Referenced by CommentControls.CommentControl.InitializeComponent().
Here is the caller graph for this function:

| void CommentControls.CommentControl.lnkEdit_LinkClicked | ( | object | sender, | |
| LinkLabelLinkClickedEventArgs | e | |||
| ) | [private] |
Internal method which invokes the EditMe event.
| sender | Who called the method | |
| e | What arguments do we have |
Definition at line 219 of file CommentControl.cs.
References CommentControls.CommentControl.EditMe.
Referenced by CommentControls.CommentControl.InitializeComponent().
Here is the caller graph for this function:

| override void CommentControls.CommentControl.Dispose | ( | bool | disposing | ) | [protected] |
Clean up any resources being used.
| disposing | true if managed resources should be disposed; otherwise, false. |
Definition at line 14 of file CommentControl.Designer.cs.
References CommentControls.CommentControl.components.
| void CommentControls.CommentControl.InitializeComponent | ( | ) | [private] |
Required method for Designer support - do not modify the contents of this method with the code editor.
Definition at line 29 of file CommentControl.Designer.cs.
References CommentControls.CommentControl.lblInfo, CommentControls.CommentControl.lblTime, CommentControls.CommentControl.lnkDelete, CommentControls.CommentControl.lnkDelete_LinkClicked(), CommentControls.CommentControl.lnkEdit, CommentControls.CommentControl.lnkEdit_LinkClicked(), CommentControls.CommentControl.lnkReply, CommentControls.CommentControl.lnkReply_LinkClicked(), CommentControls.CommentControl.panBottom, CommentControls.CommentControl.panContainer, CommentControls.CommentControl.panTop, and CommentControls.CommentControl.txtComment.
Referenced by CommentControls.CommentControl.CommentControl().
Here is the call graph for this function:

Here is the caller graph for this function:

string CommentControls.CommentControl.id [private] |
string CommentControls.CommentControl.poster [private] |
string CommentControls.CommentControl.title [private] |
string CommentControls.CommentControl.text [private] |
DateTime CommentControls.CommentControl.date [private] |
int CommentControls.CommentControl.commentLevel [private] |
int CommentControls.CommentControl.nestingIndentation = 15 [static, private] |
How deeply do you indent each comment, value in pixels.
Definition at line 34 of file CommentControl.cs.
Referenced by CommentControls.CommentControl.CommentControl().
| event CommentControlEventHandler CommentControls.CommentControl.ReplyToMe |
The event that is invoked when the lnkReply LinkLabel is clicked.
Definition at line 39 of file CommentControl.cs.
Referenced by CommentControls.CommentControl.lnkReply_LinkClicked().
| event CommentControlEventHandler CommentControls.CommentControl.DeleteMe |
The event that is invoked when the lnkDelete LinkLabel is clicked.
Definition at line 43 of file CommentControl.cs.
Referenced by CommentControls.CommentControl.lnkDelete_LinkClicked().
| event CommentControlEventHandler CommentControls.CommentControl.EditMe |
The event that is invoked when the lnkEdit LinkLabel is clicked.
Definition at line 47 of file CommentControl.cs.
Referenced by CommentControls.CommentControl.lnkEdit_LinkClicked().
System.ComponentModel.IContainer CommentControls.CommentControl.components = null [private] |
Required designer variable.
Definition at line 8 of file CommentControl.Designer.cs.
Referenced by CommentControls.CommentControl.Dispose().
1.5.1-p1