C# Class UserEfficiencyTracker.UserSurveyWindow

Interaction logic for UserSurvey.xaml
Inheritance: System.Windows.Window
Datei anzeigen Open project: sealuzh/PersonalAnalytics

Public Properties

Property Type Description
CurrentSurveyEntry UserEfficiencyTracker.Models.SurveyEntry

Public Methods

Method Description
UserSurveyWindow ( NeededSurveyWindowData neededData ) : System

Constructor sets previous user survey entry

Private Methods

Method Description
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

Method Details

UserSurveyWindow() public method

Constructor sets previous user survey entry
public UserSurveyWindow ( NeededSurveyWindowData neededData ) : System
neededData UserEfficiencyTracker.Models.NeededSurveyWindowData
return System

Property Details

CurrentSurveyEntry public_oe property

Property to get the participant's survey entries
public SurveyEntry,UserEfficiencyTracker.Models CurrentSurveyEntry
return UserEfficiencyTracker.Models.SurveyEntry