Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        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();
            }
        }