C# Class Old_Drivers.MainPage

可用于自身或导航至 Frame 内部的空白页。
Inheritance: Windows.UI.Xaml.Controls.Page
显示文件 Open project: Garfield550/Old-Drivers

Public Methods

Method Description
ConvertFromMorse ( string message ) : string

Converts a message from morse to english. This code is protected under the MIT License.

ConvertToMorse ( string message ) : string

Converts plain text to morse code. This code is protected under the MIT License.

FindLetter ( string morseVal ) : char

Finds the character value of a morse code character. This code is protected under the MIT License.

MainPage ( ) : System
TrimAll ( string str ) : string

Trim All

TrimWithRegex ( string str ) : string
ValidEnglish ( string message ) : bool

Validates english to see if it can be converted to morse code. This code is protected under the MIT License.

ValidMessage ( string message, bool isMorseForm = false ) : bool

Checks if a message is valid and won't throw errors when being played. This code is protected under the MIT License.

ValidMorse ( string message ) : bool

Validates a morse message. This code is protected under the MIT License.

Private Methods

Method Description
appBarButtonCopyClick ( object sender, RoutedEventArgs e ) : void
appBarButtonDecodeClick ( object sender, RoutedEventArgs e ) : void
appBarButtonDeleteClick ( object sender, RoutedEventArgs e ) : void
appBarButtonEncodeClick ( object sender, RoutedEventArgs e ) : void
mainPivotSelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
showAbout ( object sender, RoutedEventArgs e ) : void

Method Details

ConvertFromMorse() public static method

Converts a message from morse to english. This code is protected under the MIT License.
public static ConvertFromMorse ( string message ) : string
message string The message.
return string

ConvertToMorse() public static method

Converts plain text to morse code. This code is protected under the MIT License.
public static ConvertToMorse ( string message ) : string
message string The plain text.
return string

FindLetter() public static method

Finds the character value of a morse code character. This code is protected under the MIT License.
public static FindLetter ( string morseVal ) : char
morseVal string The morse code of the character.
return char

MainPage() public method

public MainPage ( ) : System
return System

TrimAll() public static method

Trim All
public static TrimAll ( string str ) : string
str string
return string

TrimWithRegex() public static method

public static TrimWithRegex ( string str ) : string
str string
return string

ValidEnglish() public static method

Validates english to see if it can be converted to morse code. This code is protected under the MIT License.
public static ValidEnglish ( string message ) : bool
message string The message.
return bool

ValidMessage() public static method

Checks if a message is valid and won't throw errors when being played. This code is protected under the MIT License.
public static ValidMessage ( string message, bool isMorseForm = false ) : bool
message string The message to check.
isMorseForm bool Whether the message is in morse form.
return bool

ValidMorse() public static method

Validates a morse message. This code is protected under the MIT License.
public static ValidMorse ( string message ) : bool
message string The message.
return bool