C# Класс ThoughtWorks.VisualStudio.GeneralCommentView

Interaction logic for TransitionCommentView.xaml
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GeneralCommentView ( ) : System.ComponentModel

Displays a dialog to collect a comment from a user.

GeneralCommentView ( string windowHeading, string requiredAdmonition, string windowTitle ) : System.ComponentModel

Use this class to display a general purpose text/comment collection UI.

If the user does not supply data and tries to close this window then a warning dialog is shown with the requiredAdmonition message. A Yes response cancels the OnWindowClosing event giving the user another opportunity to enter a comment. A No response allows the OnWindowClosing event to proceed and the window closes. It is up to you to collect the resulting Comment from the Comment property and do with it what you will.

Приватные методы

Метод Описание
OnWindowClosing ( object sender, CancelEventArgs e ) : void

Описание методов

GeneralCommentView() публичный Метод

Displays a dialog to collect a comment from a user.
public GeneralCommentView ( ) : System.ComponentModel
Результат System.ComponentModel

GeneralCommentView() публичный Метод

Use this class to display a general purpose text/comment collection UI.
If the user does not supply data and tries to close this window then a warning dialog is shown with the requiredAdmonition message. A Yes response cancels the OnWindowClosing event giving the user another opportunity to enter a comment. A No response allows the OnWindowClosing event to proceed and the window closes. It is up to you to collect the resulting Comment from the Comment property and do with it what you will.
public GeneralCommentView ( string windowHeading, string requiredAdmonition, string windowTitle ) : System.ComponentModel
windowHeading string A message displayed at the top of the form. This this to tell your user what to do.
requiredAdmonition string This is the message displayed in a yes/no MessageBox if the user closes the window without supplying any data.
windowTitle string The title of the window.
Результат System.ComponentModel