public EditCommentsMetro(CommentCmdLine commentCmdLine) { InitializeComponent(); if (commentCmdLine == null) { isCreating = true; this.commentCmdLine = new CommentCmdLine(""); } else { isCreating = false; this.commentCmdLine = commentCmdLine; tbContent.Text = commentCmdLine.Content; tbContent.SelectAll(); } //this.ReadLanguageResources(); if (this.commentCmdLine != null) { this.commentCmdLineBackUp = (CommentCmdLine)this.commentCmdLine.Clone(); } }
public EditCommentForm(CommentCmdLine commentCmdLine) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; if (commentCmdLine == null) { isCreating = true; this.commentCmdLine = new CommentCmdLine(""); } else { isCreating = false; this.commentCmdLine = commentCmdLine; tbContent.Text = commentCmdLine.Content; tbContent.SelectAll(); } this.ReadLanguageResources(); if (this.commentCmdLine != null) { this.commentCmdLineBackUp = (CommentCmdLine)this.commentCmdLine.Clone(); } }