C# Class Gwupe.Agent.UI.WPF.Dashboard

Interaction logic for Dashboard.xaml
显示文件 Open project: gwupe/Gwupe Class Usage Examples

Private Properties

Property Type Description
ActivateEngagement void
ActivateEngagement void
ActivateSearchUi void
ActiveRosterChanged void
ChatRemoteAccessId_Click void
CheckActiveEngagements void
ClearCurrentEngagement void
ContactSelected void
Contacts_LostFocus void
CurrentUserOnPropertyChanged void
Elevate string
EngagementManagerOnNewActivity void
ErrorRemoteIdBox void
ExitApplication void
Hide void
HideIfClosing void
HideIfMinimized void
InitWindowHandle void
LoggedIn void
LoggingIn void
Login void
LoginFailed void
LoginManagerOnLoggedOut void
NavigateToUrl void
NotificationFilter void
Notification_CollectionChanged void
NotificationsOnCollectionChanged void
OnEngagementPropertyChange void
OnPreviewMouseUp void
ProcessSearch void
PromptSignup void
RefreshRosters void
RemoteIdKeyDown void
ReportFaultButtonClick void
Reset void
ResetRemoteIdBox void
ResetUnreadIfVisible void
SearchBoxMenuOnSelectionChanged void
SearchBox_GotFocus void
SearchBox_LostFocus void
SearchMenuClick void
SearchRemoteId void
Search_TextChanged void
SetTitle void
SettingsOnPropertyChanged void
Settings_Click void
SetupCurrentUserListener void
SetupEngagementWindows void
SetupNotificationHandler void
SetupPartner void
SetupRoster void
SetupSearch void
Show void
ShowEngagement void
Team_Click void
UserInfo_Click void
WindowStateChanged void

Public Methods

Method Description
Alert ( string message ) : void
Close ( ) : void
CompleteElevate ( ) : void
Dashboard ( GwupeClientAppContext appContext ) : System
GenerateFaultReport ( ) : FaultReport
Logout ( object sender, EventArgs e ) : void

Event called by Window when logout button is hit

SigningUp ( ) : void

Protected Methods

Method Description
OnSourceInitialized ( EventArgs e ) : void

Setup so that we can receive messages from other windows in the OS

Private Methods

Method Description
ActivateEngagement ( Attendance attendance ) : void
ActivateEngagement ( string username ) : void
ActivateSearchUi ( ) : void
ActiveRosterChanged ( object sender, NotifyCollectionChangedEventArgs notifyCollectionChangedEventArgs ) : void

Called when the active roster changes

ChatRemoteAccessId_Click ( object sender, RoutedEventArgs e ) : void
CheckActiveEngagements ( object sender, System.Timers.ElapsedEventArgs elapsedEventArgs ) : void

Called on a timer to check which roster elements are no longer active.

ClearCurrentEngagement ( ) : void
ContactSelected ( object sender, RoutedEventArgs e ) : void

When a normal contact is selected, we show the engagement.

Contacts_LostFocus ( object sender, RoutedEventArgs e ) : void

When we click on another button, Team must lose focus so when its clicked on again, the select item event fires.

CurrentUserOnPropertyChanged ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void

Event which gets fired when the current user changes some of his details

Elevate ( String message ) : string
EngagementManagerOnNewActivity ( object sender, EngagementActivity args ) : void

Called if there is new activity on an engagement, so we can prompt the user

ErrorRemoteIdBox ( ) : void
ExitApplication ( object sender, RoutedEventArgs e ) : void

Event called when the exit button is pressed, starts a new thread to shutdown the application (this is so the dispatcher is not responsible for this)

Hide ( ) : void
HideIfClosing ( object sender, CancelEventArgs e ) : void
HideIfMinimized ( object sender, EventArgs e ) : void
InitWindowHandle ( ) : void
LoggedIn ( ) : void
LoggingIn ( ) : void
Login ( ) : void
LoginFailed ( DataSubmitErrorArgs dataSubmissionErrors ) : void
LoginManagerOnLoggedOut ( object sender, LoginEventArgs loginEventArgs ) : void

Event called when we are logged out

NavigateToUrl ( object sender, System.Windows.Navigation.RequestNavigateEventArgs e ) : void
NotificationFilter ( object sender, System.Windows.Data.FilterEventArgs eventArgs ) : void

The filter which determines whether a notification should be shown, this is for general notifications, filters out notifications for a specific user.

Notification_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
NotificationsOnCollectionChanged ( object sender, NotifyCollectionChangedEventArgs notifyCollectionChangedEventArgs ) : void

If the notification collection changes, we must refresh the view.

OnEngagementPropertyChange ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void
OnPreviewMouseUp ( object sender, MouseButtonEventArgs e ) : void
ProcessSearch ( ) : void
PromptSignup ( DataSubmitErrorArgs dataSubmitErrorArgs = null ) : void
RefreshRosters ( ) : void
RemoteIdKeyDown ( object sender, System e ) : void
ReportFaultButtonClick ( object sender, System e ) : void
Reset ( ) : void

Reset the dashboard (normally on disconnect)

ResetRemoteIdBox ( ) : void
ResetUnreadIfVisible ( Engagement engagement ) : void
SearchBoxMenuOnSelectionChanged ( object sender, SelectionChangedEventArgs selectionChangedEventArgs ) : void
SearchBox_GotFocus ( object sender, System e ) : void
SearchBox_LostFocus ( object sender, System e ) : void
SearchMenuClick ( object sender, System e ) : void
SearchRemoteId ( bool searching ) : void
Search_TextChanged ( object sender, TextChangedEventArgs e ) : void
SetTitle ( ) : void
SettingsOnPropertyChanged ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void
Settings_Click ( object sender, System e ) : void
SetupCurrentUserListener ( ) : void

Listen for changes on the current user (so that if we change the current info, we know about it)

SetupEngagementWindows ( ) : void
SetupNotificationHandler ( ) : void

Setup the notification handling

SetupPartner ( ) : void
SetupRoster ( ) : void
SetupSearch ( ) : void
Show ( ) : void
ShowEngagement ( Attendance attendance ) : void
Team_Click ( object sender, System e ) : void
UserInfo_Click ( object sender, System e ) : void
WindowStateChanged ( object sender, EventArgs e ) : void

Method Details

Alert() public method

public Alert ( string message ) : void
message string
return void

Close() public method

public Close ( ) : void
return void

CompleteElevate() public method

public CompleteElevate ( ) : void
return void

Dashboard() public method

public Dashboard ( GwupeClientAppContext appContext ) : System
appContext GwupeClientAppContext
return System

GenerateFaultReport() public method

public GenerateFaultReport ( ) : FaultReport
return FaultReport

Logout() public method

Event called by Window when logout button is hit
public Logout ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnSourceInitialized() protected method

Setup so that we can receive messages from other windows in the OS
protected OnSourceInitialized ( EventArgs e ) : void
e EventArgs
return void

SigningUp() public method

public SigningUp ( ) : void
return void