C# Класс Examples.ExamplesChat.WinRT.MainPage

A basic page that provides characteristics common to most applications.
Наследование: ExamplesChat.WinRT.Common.LayoutAwarePage
Показать файл Открыть проект

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

Метод Описание
MainPage ( ) : NetworkCommsDotNet

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

Метод Описание
LoadState ( Object navigationParameter, Object>.Dictionary pageState ) : void

Populates the page with content passed during navigation. Any saved state is also provided when recreating a page from a prior session.

SaveState ( Object>.Dictionary pageState ) : void

Preserves state associated with this page in case the application is suspended or the page is discarded from the navigation cache. Values must conform to the serialization requirements of SuspensionManager.SessionState.

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

Метод Описание
Application_Suspending ( object sender, Windows e ) : void
CurrentMessageInputBox_KeyUp ( object sender, KeyRoutedEventArgs e ) : void

If the key pressed is enter then send the completed message

JSONRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to JSON serializer when the JSON radio button is highlighted

ProtobufRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to Protobuf serializer when the Protobuf radio button is highlighted

TCPRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to TCP mode when the TCP radio button is highlighted

UDPRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to UDP mode when the UDP radio button is highlighted

enableServerBox_CheckedUnChecked ( object sender, RoutedEventArgs e ) : void

Enable and disable the local server mode when selected

encryptionBox_Checked ( object sender, RoutedEventArgs e ) : void

Enable encryption if it is selected

localNameBox_LostFocus ( object sender, RoutedEventArgs e ) : void

Update the local name information when focus is lost

remoteIPBox_LostFocus ( object sender, RoutedEventArgs e ) : void

Update the remote IP information when focus is lost

remotePortBox_LostFocus ( object sender, RoutedEventArgs e ) : void

Update the remote port information when focus is lost

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

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

Populates the page with content passed during navigation. Any saved state is also provided when recreating a page from a prior session.
protected LoadState ( Object navigationParameter, Object>.Dictionary pageState ) : void
navigationParameter Object The parameter value passed to /// when this page was initially requested. ///
pageState Object>.Dictionary A dictionary of state preserved by this page during an earlier /// session. This will be null the first time a page is visited.
Результат void

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

public MainPage ( ) : NetworkCommsDotNet
Результат NetworkCommsDotNet

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

Preserves state associated with this page in case the application is suspended or the page is discarded from the navigation cache. Values must conform to the serialization requirements of SuspensionManager.SessionState.
protected SaveState ( Object>.Dictionary pageState ) : void
pageState Object>.Dictionary An empty dictionary to be populated with serializable state.
Результат void