C# Class Old_Drivers.MainPage

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat string

ConvertToMorse() public static méthode

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.
Résultat string

FindLetter() public static méthode

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.
Résultat char

MainPage() public méthode

public MainPage ( ) : System
Résultat System

TrimAll() public static méthode

Trim All
public static TrimAll ( string str ) : string
str string
Résultat string

TrimWithRegex() public static méthode

public static TrimWithRegex ( string str ) : string
str string
Résultat string

ValidEnglish() public static méthode

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.
Résultat bool

ValidMessage() public static méthode

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.
Résultat bool

ValidMorse() public static méthode

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