C# Class TrakHound_Dashboard.MainWindow

ファイルを表示 Open project: TrakHound/TrakHound-Community

Public Properties

Property Type Description
CurrentPageProperty DependencyProperty
DevConsole_ShownProperty DependencyProperty
DeveloperConsoleHeightProperty DependencyProperty
NotificationsCountProperty DependencyProperty
ServerInstalledProperty DependencyProperty
ServerRunningProperty DependencyProperty
ServerStatusProperty DependencyProperty
aboutManager PageManager
accountManager PageManager
addDevicePage TrakHound_Dashboard.Pages.DeviceManager.AddDevice.Page
deviceListPage DeviceList
optionsManager PageManager

Private Properties

Property Type Description
About_Initialize void
AccountManager_Initialize void
AddDevicePage_PageClosed void
AddPlugins void
AddWelcomeMessage void
AnimateTabPageClose void
AnimateTabPageClose_Completed void
AnimateTabPageOpen void
ChangePage_Backward void
ChangePage_Forward void
CheckCancel bool
CheckVersion void
ClearDevices void
ClientReader_LineAdded void
DeveloperConsole_ToolBarItem_Clicked void
DeviceManager_AddDevice_DeviceListSelected void
DeviceManager_AddDevice_EditTableSelected void
DeviceManager_DeviceList_AddDeviceSelected void
DeviceManager_DeviceList_DeviceEditSelected void
DeviceManager_DeviceList_DeviceManagerListSelected void
DeviceManager_DeviceList_Initialize void
DeviceManager_EditDevice_DeviceListSelected void
FindPluginConfiguration PluginConfiguration
GetPluginConfigurations List
GetPlugins List
GetPlugins List
GetPlugins List
GetTabPanelWidth double
LoadDevices void
LoadDevicesRequested void
LoadLocalDevices void
LoadPlugins void
LoadUserDevices void
Log_Initialize void
Log_Updated_GUI void
LoggerConfigurationFileMonitor_Changed void
LoggerConfigurationFileMonitor_Start void
Login void
Login_Finished void
Login_Worker void
Main_Window_Closed void
Main_Window_Closing void
Main_Window_PreviewKeyUp void
Main_Window_PreviewMouseDown void
Main_Window_SizeChanged void
MessageCenter_ToolBarItem_Clicked void
Options_Initialize void
Plugin_CreateOptionsPage void
Plugin_LoadSubPlugins void
Plugin_LoadSubPlugins void
Plugin_SendData void
Plugins_Closed void
ProcessPluginConfigurations List
ProcessSendData void
SendCurrentDevices void
SendCurrentDevices void
SendDeviceAddedMessage void
SendDeviceRemovedMessage void
SendDeviceUpdatedMessage void
SendDevicesLoadedMessage void
SendDevicesLoadingMessage void
SendEventData void
ServerMonitor_GUI void
ServerMonitor_Initialize void
ServerMonitor_Timer_Elapsed void
ServerReader_LineAdded void
SetTabWidths void
ShowDeviceManagerRequested void
ShowEditDeviceRequested void
ShowMe void
ShowRequested void
Splash_Close void
Splash_Initialize void
Splash_Show void
Splash_Show_GUI void
Splash_UpdateStatus void
Splash_UpdateStatus_GUI void
StartLogReaders void
StartMessageMonitor void
TabHeader_Clicked void
TabHeader_CloseClicked void
TabHeader_Closed void
TabHeader_Opened void
Timer_Elapsed void
TokenLogin_Worker void
TopBar_UserInfo_MouseDown void
UpdateUserSettings void
WndProc System.IntPtr
accountpage_UserChanged void
config_EnabledChanged void
developerConsole_ShownChanged void

Public Methods

Method Description
About_Open ( ) : void
AccountManager_Open ( ) : void
AddDevice ( DeviceDescription device ) : void

Adds a device to the Device List

AddTab ( IPage page, string name = null, ImageSource image = null, string tag = null ) : void
CloseTab ( string name, string tag = null ) : void
DeviceManager_AddDevice_Initialize ( ) : void
DeviceManager_AddDevice_Open ( ) : void
DeviceManager_DeviceList_Open ( ) : void
DeviceManager_EditDevice_Open ( DeviceDescription device ) : void
FindTab ( IPage page, string name = null, string tag = null ) : TabHeader
FindTab ( int index ) : TabHeader
FindTab ( string name, string tag = null ) : TabHeader
FindTabIndex ( TabHeader header ) : int
FindTabIndex ( string name, string tag = null ) : int
LoadSavedPageZoomValue ( IPage page ) : double
Login ( string username, string password ) : void
Logout ( ) : void
Logout_Finished ( bool success ) : void
Logout_Worker ( object o ) : void
MainWindow ( ) : System
OpenBugReport ( ) : void
OpenBugReport ( Exception ex ) : void
Options_AddPage ( IPage page ) : void
Options_Open ( ) : void
Plugin_Load ( PluginConfiguration config ) : void

Load Plugin if Enabled

SavePageZoomLevel ( IPage page, double zoomPercentage ) : void
SelectTab ( IPage page, string tag = null ) : void
SelectTab ( TabHeader header ) : void
SelectTab ( int index ) : void
SelectTab ( string name, string tag = null ) : void
TokenLogin ( string token ) : void
WelcomeMessage_Clicked ( object obj ) : void
init ( ) : void

Protected Methods

Method Description
OnSourceInitialized ( EventArgs e ) : void

Private Methods

Method Description
About_Initialize ( ) : void
AccountManager_Initialize ( ) : void
AddDevicePage_PageClosed ( ) : void
AddPlugins ( List newPlugins, List oldPlugins ) : void

Add plugins to list making sure that plugins are not repeated in list

AddWelcomeMessage ( ) : void
AnimateTabPageClose ( ) : void
AnimateTabPageClose_Completed ( object sender, EventArgs e ) : void
AnimateTabPageOpen ( ) : void
ChangePage_Backward ( ) : void
ChangePage_Forward ( ) : void
CheckCancel ( TabHeader header ) : bool
CheckVersion ( ) : void
ClearDevices ( ) : void

Clears the Device List

ClientReader_LineAdded ( System.Line line ) : void
DeveloperConsole_ToolBarItem_Clicked ( TrakHound_UI bt ) : void
DeviceManager_AddDevice_DeviceListSelected ( ) : void
DeviceManager_AddDevice_EditTableSelected ( DeviceConfiguration config ) : void
DeviceManager_DeviceList_AddDeviceSelected ( ) : void
DeviceManager_DeviceList_DeviceEditSelected ( DeviceDescription device ) : void
DeviceManager_DeviceList_DeviceManagerListSelected ( ) : void
DeviceManager_DeviceList_Initialize ( ) : void
DeviceManager_EditDevice_DeviceListSelected ( ) : void
FindPluginConfiguration ( IClientPlugin plugin, List configs ) : PluginConfiguration

Find a PluginConfiguration item in 'configs' using 'name' as an identifier Searches all subpluginconfigurations also

GetPluginConfigurations ( List plugins ) : List

Get a list of PluginConfigurations

GetPlugins ( ) : List

Get a list of IClientPlugins

GetPlugins ( Assembly assembly ) : List

Get a list of plugins in the specified Assembly

GetPlugins ( string path ) : List

Get a list of plugins in the specified path

GetTabPanelWidth ( ) : double
LoadDevices ( ) : void
LoadDevicesRequested ( EventData data ) : void
LoadLocalDevices ( ) : void
LoadPlugins ( ) : void
LoadUserDevices ( object o ) : void
Log_Initialize ( ) : void
Log_Updated_GUI ( System.Line line, string applicationName ) : void
LoggerConfigurationFileMonitor_Changed ( object sender, FileSystemEventArgs e ) : void
LoggerConfigurationFileMonitor_Start ( ) : void
Login ( UserConfiguration userConfig ) : void
Login_Finished ( UserConfiguration userConfig ) : void
Login_Worker ( object o ) : void
Main_Window_Closed ( object sender, EventArgs e ) : void
Main_Window_Closing ( object sender, System e ) : void
Main_Window_PreviewKeyUp ( object sender, KeyEventArgs e ) : void
Main_Window_PreviewMouseDown ( object sender, MouseButtonEventArgs e ) : void
Main_Window_SizeChanged ( object sender, SizeChangedEventArgs e ) : void
MessageCenter_ToolBarItem_Clicked ( TrakHound_UI bt ) : void
Options_Initialize ( ) : void
Plugin_CreateOptionsPage ( IClientPlugin plugin ) : void

Create an Options page for the plugin and add it to the Options Manager

Plugin_LoadSubPlugins ( IClientPlugin plugin ) : void

Process the SubPlugins

Plugin_LoadSubPlugins ( PluginConfiguration config ) : void

Add the 'sub' plugins to the PluginConfiguration

Plugin_SendData ( EventData data ) : void

Plugin has sent a DataEvent_Data object to other plugins

Plugins_Closed ( ) : void

Signal plugins to close

ProcessPluginConfigurations ( List configs ) : List

Process the PluginConfigurations for SubCategories

ProcessSendData ( object o ) : void
SendCurrentDevices ( ) : void
SendCurrentDevices ( IPage page ) : void
SendDeviceAddedMessage ( DeviceDescription device ) : void
SendDeviceRemovedMessage ( DeviceDescription device ) : void
SendDeviceUpdatedMessage ( DeviceDescription device ) : void
SendDevicesLoadedMessage ( ) : void
SendDevicesLoadingMessage ( ) : void
SendEventData ( EventData data ) : void
ServerMonitor_GUI ( ) : void
ServerMonitor_Initialize ( ) : void
ServerMonitor_Timer_Elapsed ( object sender, System e ) : void
ServerReader_LineAdded ( System.Line line ) : void
SetTabWidths ( ) : void
ShowDeviceManagerRequested ( EventData data ) : void
ShowEditDeviceRequested ( EventData data ) : void
ShowMe ( ) : void
ShowRequested ( EventData data ) : void

Page has sent a message requesting to be shown as a tab de_d.id = 'show' de_d.data01 = Configuration de_d.data02 = Page (IPage) de_d.data03 = [Optional] Alternate Title de_d.data04 = [Optional] Tag

Splash_Close ( ) : void
Splash_Initialize ( ) : void
Splash_Show ( ) : void
Splash_Show_GUI ( ) : void
Splash_UpdateStatus ( string status, double loadingProgress ) : void
Splash_UpdateStatus_GUI ( string status, double loadingProgress ) : void
StartLogReaders ( ) : void
StartMessageMonitor ( ) : void
TabHeader_Clicked ( TabHeader header ) : void
TabHeader_CloseClicked ( TabHeader header ) : void
TabHeader_Closed ( object sender, EventArgs e ) : void
TabHeader_Opened ( object sender, EventArgs e ) : void
Timer_Elapsed ( object sender, System e ) : void
TokenLogin_Worker ( object o ) : void
TopBar_UserInfo_MouseDown ( object sender, System e ) : void
UpdateUserSettings ( ) : void
WndProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr
accountpage_UserChanged ( UserConfiguration userConfig ) : void
config_EnabledChanged ( PluginConfiguration sender ) : void
developerConsole_ShownChanged ( bool shown ) : void

Method Details

About_Open() public method

public About_Open ( ) : void
return void

AccountManager_Open() public method

public AccountManager_Open ( ) : void
return void

AddDevice() public method

Adds a device to the Device List
public AddDevice ( DeviceDescription device ) : void
device DeviceDescription
return void

AddTab() public method

public AddTab ( IPage page, string name = null, ImageSource image = null, string tag = null ) : void
page IPage
name string
image ImageSource
tag string
return void

CloseTab() public method

public CloseTab ( string name, string tag = null ) : void
name string
tag string
return void

DeviceManager_AddDevice_Initialize() public method

public DeviceManager_AddDevice_Initialize ( ) : void
return void

DeviceManager_AddDevice_Open() public method

public DeviceManager_AddDevice_Open ( ) : void
return void

DeviceManager_DeviceList_Open() public method

public DeviceManager_DeviceList_Open ( ) : void
return void

DeviceManager_EditDevice_Open() public method

public DeviceManager_EditDevice_Open ( DeviceDescription device ) : void
device DeviceDescription
return void

FindTab() public method

public FindTab ( IPage page, string name = null, string tag = null ) : TabHeader
page IPage
name string
tag string
return TabHeader

FindTab() public method

public FindTab ( int index ) : TabHeader
index int
return TabHeader

FindTab() public method

public FindTab ( string name, string tag = null ) : TabHeader
name string
tag string
return TabHeader

FindTabIndex() public method

public FindTabIndex ( TabHeader header ) : int
header TabHeader
return int

FindTabIndex() public method

public FindTabIndex ( string name, string tag = null ) : int
name string
tag string
return int

LoadSavedPageZoomValue() public static method

public static LoadSavedPageZoomValue ( IPage page ) : double
page IPage
return double

Login() public method

public Login ( string username, string password ) : void
username string
password string
return void

Logout() public method

public Logout ( ) : void
return void

Logout_Finished() public method

public Logout_Finished ( bool success ) : void
success bool
return void

Logout_Worker() public method

public Logout_Worker ( object o ) : void
o object
return void

MainWindow() public method

public MainWindow ( ) : System
return System

OnSourceInitialized() protected method

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
return void

OpenBugReport() public method

public OpenBugReport ( ) : void
return void

OpenBugReport() public method

public OpenBugReport ( Exception ex ) : void
ex System.Exception
return void

Options_AddPage() public method

public Options_AddPage ( IPage page ) : void
page IPage
return void

Options_Open() public method

public Options_Open ( ) : void
return void

Plugin_Load() public method

Load Plugin if Enabled
public Plugin_Load ( PluginConfiguration config ) : void
config PluginConfiguration
return void

SavePageZoomLevel() public static method

public static SavePageZoomLevel ( IPage page, double zoomPercentage ) : void
page IPage
zoomPercentage double
return void

SelectTab() public method

public SelectTab ( IPage page, string tag = null ) : void
page IPage
tag string
return void

SelectTab() public method

public SelectTab ( TabHeader header ) : void
header TabHeader
return void

SelectTab() public method

public SelectTab ( int index ) : void
index int
return void

SelectTab() public method

public SelectTab ( string name, string tag = null ) : void
name string
tag string
return void

TokenLogin() public method

public TokenLogin ( string token ) : void
token string
return void

WelcomeMessage_Clicked() public method

public WelcomeMessage_Clicked ( object obj ) : void
obj object
return void

init() public method

public init ( ) : void
return void

Property Details

CurrentPageProperty public_oe static_oe property

public static DependencyProperty CurrentPageProperty
return DependencyProperty

DevConsole_ShownProperty public_oe static_oe property

public static DependencyProperty DevConsole_ShownProperty
return DependencyProperty

DeveloperConsoleHeightProperty public_oe static_oe property

public static DependencyProperty DeveloperConsoleHeightProperty
return DependencyProperty

NotificationsCountProperty public_oe static_oe property

public static DependencyProperty NotificationsCountProperty
return DependencyProperty

ServerInstalledProperty public_oe static_oe property

public static DependencyProperty ServerInstalledProperty
return DependencyProperty

ServerRunningProperty public_oe static_oe property

public static DependencyProperty ServerRunningProperty
return DependencyProperty

ServerStatusProperty public_oe static_oe property

public static DependencyProperty ServerStatusProperty
return DependencyProperty

aboutManager public_oe property

public PageManager aboutManager
return PageManager

accountManager public_oe property

public PageManager accountManager
return PageManager

addDevicePage public_oe property

public Page,TrakHound_Dashboard.Pages.DeviceManager.AddDevice addDevicePage
return TrakHound_Dashboard.Pages.DeviceManager.AddDevice.Page

deviceListPage public_oe property

public DeviceList deviceListPage
return DeviceList

optionsManager public_oe property

public PageManager optionsManager
return PageManager