C# Class UserEfficiencyTracker.DailyProductivityPopUp

This pop-up is shown once a day. Interaction logic for DailyProductivityPopUp.xaml
Inheritance: System.Windows.Window
Show file Open project: sealuzh/PersonalAnalytics Class Usage Examples

Public Methods

Method Description
DailyProductivityPopUp ( System.DateTime lastActiveWorkday ) : System
ShowDialog ( ) : bool?

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

Private Methods

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

todo: unsure if still needed

OnKeyDownHandler ( object sender, System e ) : void

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

Postpone0Clicked ( 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

DailyProductivityPopUp() public method

public DailyProductivityPopUp ( System.DateTime lastActiveWorkday ) : System
lastActiveWorkday System.DateTime
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?