C# Class UserEfficiencyTracker.IntervalProductivityPopUp

This pop-up is shown in an interval Interaction logic for IntervalProductivityPopUp.xaml
Inheritance: System.Windows.Window
显示文件 Open project: sealuzh/PersonalAnalytics Class Usage Examples

Public Methods

Method Description
IntervalProductivityPopUp ( SurveyEntry previousSurveyEntry ) : System
ShowDialog ( ) : bool?

override ShowDialog method to place it on the bottom right corner of the developer's screen

Private Methods

Method Description
IntervalProductivityPopUp_OnClosed ( object sender, EventArgs e ) : void

todo: unsure if still needed

NotAnsweredAfterHours ( object sender, EventArgs e ) : void

closes the survey pop-up if the user didn't fill out the survey after x hours

OnKeyDownHandler ( object sender, System e ) : void

If the user uses shortcuts to escape or fill out the survey.

Postpone0Clicked ( object sender, RoutedEventArgs e ) : void
Postpone1Clicked ( object sender, RoutedEventArgs e ) : void
Postpone2Clicked ( object sender, RoutedEventArgs e ) : void
Postpone3Clicked ( object sender, RoutedEventArgs e ) : void
Productivity1_Checked ( object sender, RoutedEventArgs e ) : void
Productivity2_Checked ( object sender, RoutedEventArgs e ) : void
Productivity3_Checked ( object sender, RoutedEventArgs e ) : void
Productivity4_Checked ( object sender, RoutedEventArgs e ) : void
Productivity5_Checked ( object sender, RoutedEventArgs e ) : void
Productivity6_Checked ( object sender, RoutedEventArgs e ) : void
Productivity7_Checked ( object sender, RoutedEventArgs e ) : void
UserFinishedSurvey ( int selectedProductivityValue ) : void

Close the pop-up and save the value.

Method Details

IntervalProductivityPopUp() public method

public IntervalProductivityPopUp ( SurveyEntry previousSurveyEntry ) : System
previousSurveyEntry UserEfficiencyTracker.Models.SurveyEntry
return System

ShowDialog() public method

override ShowDialog method to place it on the bottom right corner of the developer's screen
public ShowDialog ( ) : bool?
return bool?