C# Класс TrakHound_Dashboard.MainWindow

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnSourceInitialized ( EventArgs e ) : void

Приватные методы

Метод Описание
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

Описание методов

About_Open() публичный Метод

public About_Open ( ) : void
Результат void

AccountManager_Open() публичный Метод

public AccountManager_Open ( ) : void
Результат void

AddDevice() публичный Метод

Adds a device to the Device List
public AddDevice ( DeviceDescription device ) : void
device DeviceDescription
Результат void

AddTab() публичный Метод

public AddTab ( IPage page, string name = null, ImageSource image = null, string tag = null ) : void
page IPage
name string
image ImageSource
tag string
Результат void

CloseTab() публичный Метод

public CloseTab ( string name, string tag = null ) : void
name string
tag string
Результат void

DeviceManager_AddDevice_Initialize() публичный Метод

public DeviceManager_AddDevice_Initialize ( ) : void
Результат void

DeviceManager_AddDevice_Open() публичный Метод

public DeviceManager_AddDevice_Open ( ) : void
Результат void

DeviceManager_DeviceList_Open() публичный Метод

public DeviceManager_DeviceList_Open ( ) : void
Результат void

DeviceManager_EditDevice_Open() публичный Метод

public DeviceManager_EditDevice_Open ( DeviceDescription device ) : void
device DeviceDescription
Результат void

FindTab() публичный Метод

public FindTab ( IPage page, string name = null, string tag = null ) : TabHeader
page IPage
name string
tag string
Результат TabHeader

FindTab() публичный Метод

public FindTab ( int index ) : TabHeader
index int
Результат TabHeader

FindTab() публичный Метод

public FindTab ( string name, string tag = null ) : TabHeader
name string
tag string
Результат TabHeader

FindTabIndex() публичный Метод

public FindTabIndex ( TabHeader header ) : int
header TabHeader
Результат int

FindTabIndex() публичный Метод

public FindTabIndex ( string name, string tag = null ) : int
name string
tag string
Результат int

LoadSavedPageZoomValue() публичный статический Метод

public static LoadSavedPageZoomValue ( IPage page ) : double
page IPage
Результат double

Login() публичный Метод

public Login ( string username, string password ) : void
username string
password string
Результат void

Logout() публичный Метод

public Logout ( ) : void
Результат void

Logout_Finished() публичный Метод

public Logout_Finished ( bool success ) : void
success bool
Результат void

Logout_Worker() публичный Метод

public Logout_Worker ( object o ) : void
o object
Результат void

MainWindow() публичный Метод

public MainWindow ( ) : System
Результат System

OnSourceInitialized() защищенный Метод

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
Результат void

OpenBugReport() публичный Метод

public OpenBugReport ( ) : void
Результат void

OpenBugReport() публичный Метод

public OpenBugReport ( Exception ex ) : void
ex System.Exception
Результат void

Options_AddPage() публичный Метод

public Options_AddPage ( IPage page ) : void
page IPage
Результат void

Options_Open() публичный Метод

public Options_Open ( ) : void
Результат void

Plugin_Load() публичный Метод

Load Plugin if Enabled
public Plugin_Load ( PluginConfiguration config ) : void
config PluginConfiguration
Результат void

SavePageZoomLevel() публичный статический Метод

public static SavePageZoomLevel ( IPage page, double zoomPercentage ) : void
page IPage
zoomPercentage double
Результат void

SelectTab() публичный Метод

public SelectTab ( IPage page, string tag = null ) : void
page IPage
tag string
Результат void

SelectTab() публичный Метод

public SelectTab ( TabHeader header ) : void
header TabHeader
Результат void

SelectTab() публичный Метод

public SelectTab ( int index ) : void
index int
Результат void

SelectTab() публичный Метод

public SelectTab ( string name, string tag = null ) : void
name string
tag string
Результат void

TokenLogin() публичный Метод

public TokenLogin ( string token ) : void
token string
Результат void

WelcomeMessage_Clicked() публичный Метод

public WelcomeMessage_Clicked ( object obj ) : void
obj object
Результат void

init() публичный Метод

public init ( ) : void
Результат void

Описание свойств

CurrentPageProperty публичное статическое свойство

public static DependencyProperty CurrentPageProperty
Результат DependencyProperty

DevConsole_ShownProperty публичное статическое свойство

public static DependencyProperty DevConsole_ShownProperty
Результат DependencyProperty

DeveloperConsoleHeightProperty публичное статическое свойство

public static DependencyProperty DeveloperConsoleHeightProperty
Результат DependencyProperty

NotificationsCountProperty публичное статическое свойство

public static DependencyProperty NotificationsCountProperty
Результат DependencyProperty

ServerInstalledProperty публичное статическое свойство

public static DependencyProperty ServerInstalledProperty
Результат DependencyProperty

ServerRunningProperty публичное статическое свойство

public static DependencyProperty ServerRunningProperty
Результат DependencyProperty

ServerStatusProperty публичное статическое свойство

public static DependencyProperty ServerStatusProperty
Результат DependencyProperty

aboutManager публичное свойство

public PageManager aboutManager
Результат PageManager

accountManager публичное свойство

public PageManager accountManager
Результат PageManager

addDevicePage публичное свойство

public Page,TrakHound_Dashboard.Pages.DeviceManager.AddDevice addDevicePage
Результат TrakHound_Dashboard.Pages.DeviceManager.AddDevice.Page

deviceListPage публичное свойство

public DeviceList deviceListPage
Результат DeviceList

optionsManager публичное свойство

public PageManager optionsManager
Результат PageManager