Quickstarts.AlarmConditionClient.AddCommentDlg.ShowDialog C# (CSharp) Method

ShowDialog() public method

Prompts the user to enter a comment.
public ShowDialog ( string comment ) : string
comment string
return string
        public string ShowDialog(string comment)
        {
            CommentTB.Text = comment;

            // display the dialog.
            if (ShowDialog() != DialogResult.OK)
            {
                return null;
            }

            return CommentTB.Text;
        }
        #endregion