C# Класс UserEfficiencyTracker.UserSurveyWindow

Interaction logic for UserSurvey.xaml
Наследование: System.Windows.Window
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CurrentSurveyEntry UserEfficiencyTracker.Models.SurveyEntry

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

Метод Описание
UserSurveyWindow ( NeededSurveyWindowData neededData ) : System

Constructor sets previous user survey entry

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

Метод Описание
IsSurveyFilledOut ( ) : bool

true if the user has at least inserted some tasks

OKButton_Click ( object sender, RoutedEventArgs e ) : void

Participant finishes the survey

PredefinedText_Clicked ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
RemoveTaskEntry_Click ( object sender, RoutedEventArgs e ) : void

removes the currently selected task entry from the list

TaskDescription_TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

as soon as the user starts typing, the auto completion box shows results additionally, we check if a new empty textbox is needed for additional user input also updates the autocompletion suggestion list shown to the user

UserSurveyWindow_OnClosing ( object sender, CancelEventArgs e ) : void
lbSuggestion_SuggestionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

user selected an item from the suggestion listbox

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

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

Constructor sets previous user survey entry
public UserSurveyWindow ( NeededSurveyWindowData neededData ) : System
neededData UserEfficiencyTracker.Models.NeededSurveyWindowData
Результат System

Описание свойств

CurrentSurveyEntry публичное свойство

Property to get the participant's survey entries
public SurveyEntry,UserEfficiencyTracker.Models CurrentSurveyEntry
Результат UserEfficiencyTracker.Models.SurveyEntry