CommentControls.WorkingCommentControl Class Reference

The comment control which is actually used in the system Simpler and less abstract than the one envisioned in the CommentContainer system, this one actually works. We need working code. Thankyouverymuch. More...

List of all members.

Public Member Functions

 WorkingCommentControl ()
 Creates a new instance fo the WorkingCommentControl.
 WorkingCommentControl (IAccessHandler accessHandler, int literature, int project)
 Create a new WorkingCommentControl instance pertaining to the data described by the parameters.
void UpdateComments ()
 Update the control visible and enabled status, and update the treeview with new data.

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.

Properties

IAccessHandler AccessHandler [get, set]
 The access handler used by the control to contact the server.
int Project [get, set]
 The UniquelyIdentifiable ID for the project the comments are related to.
int Literature [get, set]
 The UniquelyIdentifiable ID for the literature the comments are related to.

Private Member Functions

void commentCreateButton_Click (object sender, EventArgs e)
void commentCancelButton_Click (object sender, EventArgs e)
void commentEditButton_Click (object sender, EventArgs e)
void commentSubmitButton_Click (object sender, EventArgs e)
void commentReplyButton_Click (object sender, EventArgs e)
void PopulateCommentsTree ()
 Fills the comment treeview with comments from the accesshandler.
void commentsTreeview_AfterSelect (object sender, TreeViewEventArgs e)
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.

Private Attributes

IAccessHandler accessHandler
bool replyToComment = false
bool creating = false
int literature
int project
Dictionary< int, TreeNode > commentsTable = new Dictionary<int, TreeNode>()
System.ComponentModel.IContainer components = null
 Required designer variable.
System.Windows.Forms.GroupBox commentViewGroupBox1
System.Windows.Forms.Panel panel1
System.Windows.Forms.Label label4
System.Windows.Forms.TreeView commentsTreeview
System.Windows.Forms.GroupBox commentOptionsGroupBox
System.Windows.Forms.Button commentReplyButton
System.Windows.Forms.Button commentCancelButton
System.Windows.Forms.Button commentSubmitButton
System.Windows.Forms.Button commentCreateButton
System.Windows.Forms.Button commentEditButton
System.Windows.Forms.TextBox commentDetailsTextbox
System.Windows.Forms.Panel panel4
System.Windows.Forms.Label label11
System.Windows.Forms.Panel panel2
System.Windows.Forms.Label label10
System.Windows.Forms.TextBox commentContentTextBox


Detailed Description

The comment control which is actually used in the system Simpler and less abstract than the one envisioned in the CommentContainer system, this one actually works. We need working code. Thankyouverymuch.

Definition at line 18 of file WorkingCommentControl.cs.


Constructor & Destructor Documentation

CommentControls.WorkingCommentControl.WorkingCommentControl (  ) 

Creates a new instance fo the WorkingCommentControl.

Definition at line 28 of file WorkingCommentControl.cs.

References CommentControls.WorkingCommentControl.InitializeComponent(), and CommentControls.WorkingCommentControl.UpdateComments().

Here is the call graph for this function:

CommentControls.WorkingCommentControl.WorkingCommentControl ( IAccessHandler  accessHandler,
int  literature,
int  project 
)

Create a new WorkingCommentControl instance pertaining to the data described by the parameters.

Parameters:
accessHandler An access handler
literature The related literature's UniquelyIdentifiable ID
project The related project's UniquelyIdentifiable ID

Definition at line 40 of file WorkingCommentControl.cs.

References CommentControls.WorkingCommentControl.accessHandler, CommentControls.WorkingCommentControl.InitializeComponent(), and CommentControls.WorkingCommentControl.UpdateComments().

Here is the call graph for this function:


Member Function Documentation

void CommentControls.WorkingCommentControl.UpdateComments (  ) 

Update the control visible and enabled status, and update the treeview with new data.

Definition at line 181 of file WorkingCommentControl.cs.

References CommentControls.WorkingCommentControl.commentCancelButton_Click().

Referenced by CommentControls.WorkingCommentControl.WorkingCommentControl().

Here is the call graph for this function:

Here is the caller graph for this function:

void CommentControls.WorkingCommentControl.PopulateCommentsTree (  )  [private]

Fills the comment treeview with comments from the accesshandler.

Definition at line 189 of file WorkingCommentControl.cs.

References CommentControls.WorkingCommentControl.accessHandler, CommentControls.WorkingCommentControl.commentsTable, CommentControls.WorkingCommentControl.commentsTreeview, Shared.IAccessHandler.GetComments(), CommentControls.WorkingCommentControl.literature, and CommentControls.WorkingCommentControl.project.

Referenced by CommentControls.WorkingCommentControl.commentCancelButton_Click(), and CommentControls.WorkingCommentControl.commentSubmitButton_Click().

Here is the call graph for this function:

Here is the caller graph for this function:

override void CommentControls.WorkingCommentControl.Dispose ( bool  disposing  )  [protected]

Clean up any resources being used.

Parameters:
disposing true if managed resources should be disposed; otherwise, false.

Definition at line 14 of file WorkingCommentControl.Designer.cs.

References CommentControls.WorkingCommentControl.components.

void CommentControls.WorkingCommentControl.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 WorkingCommentControl.Designer.cs.

References CommentControls.WorkingCommentControl.commentCancelButton, CommentControls.WorkingCommentControl.commentCancelButton_Click(), CommentControls.WorkingCommentControl.commentContentTextBox, CommentControls.WorkingCommentControl.commentCreateButton, CommentControls.WorkingCommentControl.commentCreateButton_Click(), CommentControls.WorkingCommentControl.commentDetailsTextbox, CommentControls.WorkingCommentControl.commentEditButton, CommentControls.WorkingCommentControl.commentEditButton_Click(), CommentControls.WorkingCommentControl.commentOptionsGroupBox, CommentControls.WorkingCommentControl.commentReplyButton, CommentControls.WorkingCommentControl.commentReplyButton_Click(), CommentControls.WorkingCommentControl.commentsTreeview, CommentControls.WorkingCommentControl.commentsTreeview_AfterSelect(), CommentControls.WorkingCommentControl.commentSubmitButton, CommentControls.WorkingCommentControl.commentSubmitButton_Click(), CommentControls.WorkingCommentControl.commentViewGroupBox1, CommentControls.WorkingCommentControl.label10, CommentControls.WorkingCommentControl.label11, CommentControls.WorkingCommentControl.label4, CommentControls.WorkingCommentControl.panel1, CommentControls.WorkingCommentControl.panel2, and CommentControls.WorkingCommentControl.panel4.

Referenced by CommentControls.WorkingCommentControl.WorkingCommentControl().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

System.ComponentModel.IContainer CommentControls.WorkingCommentControl.components = null [private]

Required designer variable.

Definition at line 8 of file WorkingCommentControl.Designer.cs.

Referenced by CommentControls.WorkingCommentControl.Dispose().


Property Documentation

IAccessHandler CommentControls.WorkingCommentControl.AccessHandler [get, set]

The access handler used by the control to contact the server.

Definition at line 53 of file WorkingCommentControl.cs.

int CommentControls.WorkingCommentControl.Project [get, set]

The UniquelyIdentifiable ID for the project the comments are related to.

Definition at line 62 of file WorkingCommentControl.cs.

int CommentControls.WorkingCommentControl.Literature [get, set]

The UniquelyIdentifiable ID for the literature the comments are related to.

Definition at line 71 of file WorkingCommentControl.cs.


The documentation for this class was generated from the following files:
Generated on Thu Dec 21 06:24:32 2006 for SCRAML by  doxygen 1.5.1-p1