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

Supports the ExplorerViewControl window
Наследование: IViewModel
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetMqlFromCardTypeList string
Initialize void
InnerPanel System.Windows.Controls.StackPanel
MakeChooseCardButton System.Windows.Controls.Button
MakeComboBox System.Windows.Controls.ComboBox
MakeTextBox System.Windows.Controls.TextBox
PropertyIsEditable bool
UserIsProjectAdmin bool
ValueNotSetButton System.Windows.Controls.Button
ViewModel System
ViewModel System

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

Метод Описание
ClearProjectList ( ) : void

Clear the project list

CreateCard ( string type, string name ) : Card

Creates a new Card

GetCardList ( IEnumerable types ) : IEnumerable

Given a list of card type names, return card number/type/name list

GetCardsForFavorite ( string view ) : CardBasicInfo>.SortedList

Get collection of CardsCollection for a particular favorite

This list is sorted using a concatenated string of (card type name + card name + card number) as the key.

GetCardsOfType ( string type ) : CardsCollection

Gets cards for type

GetCommentsForCard ( int number ) : IEnumerable

Returns comments for a card

GetOneCard ( int cardNo ) : Card

Returns the card for cardNo

PostComment ( int number, string comment ) : void

Posts a comment to a card

Project ( ) : Project

Returns the project object

SelectProject ( object projectId ) : bool

Set the value of the project

SendMurmur ( string murmur ) : void

Sends a murmur

ViewModel ( string host, string login, string password ) : System

Constructs a new ViewModel

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

Метод Описание
GetMqlFromCardTypeList ( IEnumerable types ) : string

Given a list of types, returns card number, type, name

Initialize ( string host, string login, string password ) : void
InnerPanel ( CardProperty cardProperty, Card thisCard, RoutedEventHandler onButtonChooseCardClick, RoutedEventHandler onPropertyTextBoxLostFocus, SelectionChangedEventHandler onPropertyComboBoxSelectionChanged, RoutedEventHandler onButtonNotSetClick ) : StackPanel
MakeChooseCardButton ( CardProperty cardProperty ) : System.Windows.Controls.Button
MakeComboBox ( CardProperty cardProperty ) : ComboBox
MakeTextBox ( CardProperty cardProperty, Card thisCard ) : TextBox
PropertyIsEditable ( CardProperty property ) : bool
UserIsProjectAdmin ( ) : bool

returns true/false whether the user is an admin on the project

ValueNotSetButton ( CardProperty cardProperty, FrameworkElement control ) : System.Windows.Controls.Button
ViewModel ( ) : System

Constructs a naked ViewModel

ViewModel ( IMingleServer mingle ) : System

Testable constructor used to inject a Mingle fixture

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

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

Clear the project list
public ClearProjectList ( ) : void
Результат void

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

Creates a new Card
public CreateCard ( string type, string name ) : Card
type string
name string One line card name
Результат Card

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

Given a list of card type names, return card number/type/name list
public GetCardList ( IEnumerable types ) : IEnumerable
types IEnumerable
Результат IEnumerable

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

Get collection of CardsCollection for a particular favorite
This list is sorted using a concatenated string of (card type name + card name + card number) as the key.
public GetCardsForFavorite ( string view ) : CardBasicInfo>.SortedList
view string
Результат CardBasicInfo>.SortedList

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

Gets cards for type
public GetCardsOfType ( string type ) : CardsCollection
type string
Результат CardsCollection

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

Returns comments for a card
public GetCommentsForCard ( int number ) : IEnumerable
number int
Результат IEnumerable

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

Returns the card for cardNo
public GetOneCard ( int cardNo ) : Card
cardNo int
Результат Card

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

Posts a comment to a card
public PostComment ( int number, string comment ) : void
number int
comment string
Результат void

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

Returns the project object
public Project ( ) : Project
Результат Project

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

Set the value of the project
public SelectProject ( object projectId ) : bool
projectId object
Результат bool

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

Sends a murmur
public SendMurmur ( string murmur ) : void
murmur string
Результат void

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

Constructs a new ViewModel
public ViewModel ( string host, string login, string password ) : System
host string
login string
password string
Результат System