private void _btnComment_Click(object sender, EventArgs e)
        {
            string newComment = FrmInputMultiLine.Show(this, this.Text, "Edit Comments", "Enter comments for your algorithm", this._comment);

            if (newComment != null)
            {
                this._comment = newComment;
            }
        }
        private void _btnComment_Click(object sender, EventArgs e)
        {
            if (this._readOnly)
            {
                FrmInputMultiLine.ShowFixed(this, this.Text, "View Comments", this._txtName.Text, this._comments);
            }
            else
            {
                string newComments = FrmInputMultiLine.Show(this, this.Text, "Edit Comments", this._txtName.Text, this._comments);

                if (newComments != null)
                {
                    this._comments = newComments;
                }
            }
        }
Ejemplo n.º 3
0
        void do_something_in_r()
        {
            string text = FrmInputMultiLine.Show(this, "R", "Enter command", null, "a = 42\r\na");

            if (text != null)
            {
                try
                {
                    string newText = Arr.Instance.Evaluate(text).ToString();

                    FrmInputMultiLine.ShowFixed(this, "R", "Result of user command", null, newText);
                }
                catch (Exception ex)
                {
                    FrmMsgBox.ShowError(this, ex.Message);
                }
            }
        }