C# Class SSC_Client.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Exibir arquivo Open project: StoneMoe/SimpleSecureChat

Public Methods

Method Description
AddMessage ( string msg, bool self = false ) : void
ConnectHandler ( IPAddress ip, int port ) : void
Decrypt ( string toDecrypt, string key ) : string
Encrypt ( string toEncrypt, string key ) : string
MainWindow ( ) : System
RecvHandler ( ) : void
Sendmsg ( ) : void
addLog ( string msg ) : void
connectEnd ( IAsyncResult iars ) : void
flashTaskBar ( IntPtr hWnd, falshType type ) : bool
makeConnect ( ConnectStatus flag ) : void
makeSend ( bool on ) : void
parseData ( string rawdata ) : string[]
parseMsg ( string cmd, string msg ) : byte[]
presetHandler ( ) : void
str2bytes ( string before ) : byte[]

Private Methods

Method Description
ConnectButton_Click ( object sender, RoutedEventArgs e ) : void
FlashWindowEx ( FLASHWINFO &pwfi ) : bool
SendButton_Click ( object sender, RoutedEventArgs e ) : void
Window_Loaded ( object sender, RoutedEventArgs e ) : void
Window_MouseDown ( object sender, System e ) : void
button1_Click ( object sender, RoutedEventArgs e ) : void
button2_Click ( object sender, RoutedEventArgs e ) : void
messageArea_TextChanged ( object sender, System e ) : void
saveButton_Click ( object sender, RoutedEventArgs e ) : void
sendBox_PreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Method Details

AddMessage() public method

public AddMessage ( string msg, bool self = false ) : void
msg string
self bool
return void

ConnectHandler() public method

public ConnectHandler ( IPAddress ip, int port ) : void
ip System.Net.IPAddress
port int
return void

Decrypt() public method

public Decrypt ( string toDecrypt, string key ) : string
toDecrypt string
key string
return string

Encrypt() public method

public Encrypt ( string toEncrypt, string key ) : string
toEncrypt string
key string
return string

MainWindow() public method

public MainWindow ( ) : System
return System

RecvHandler() public method

public RecvHandler ( ) : void
return void

Sendmsg() public method

public Sendmsg ( ) : void
return void

addLog() public method

public addLog ( string msg ) : void
msg string
return void

connectEnd() public method

public connectEnd ( IAsyncResult iars ) : void
iars IAsyncResult
return void

flashTaskBar() public static method

public static flashTaskBar ( IntPtr hWnd, falshType type ) : bool
hWnd System.IntPtr
type falshType
return bool

makeConnect() public method

public makeConnect ( ConnectStatus flag ) : void
flag ConnectStatus
return void

makeSend() public method

public makeSend ( bool on ) : void
on bool
return void

parseData() public method

public parseData ( string rawdata ) : string[]
rawdata string
return string[]

parseMsg() public method

public parseMsg ( string cmd, string msg ) : byte[]
cmd string
msg string
return byte[]

presetHandler() public method

public presetHandler ( ) : void
return void

str2bytes() public method

public str2bytes ( string before ) : byte[]
before string
return byte[]