C# 클래스 Examples.ExamplesChat.WinRT.MainPage

A basic page that provides characteristics common to most applications.
상속: ExamplesChat.WinRT.Common.LayoutAwarePage
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net

공개 메소드들

메소드 설명
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