C# Class UserInterface.ProgConf

Interaction logic for Window1.xaml
Inheritance: System.Windows.Window
Exibir arquivo Open project: shranjan/pinac Class Usage Examples

Public Methods

Method Description
ProgConf ( ) : System

Default constructor - Initializing the intial things

setUserList ( List list ) : void

Sets the userlist sent by the connection module. This list contains all the users currently in the swarm.

setUsername ( string user ) : void

Sets the username to be displayed on the screen. This is sent by the connection module.

Private Methods

Method Description
NewAccessPermission ( int read, int write, string text ) : void
ShowError ( string errorMsg ) : void
cmdSend_Click ( object sender, RoutedEventArgs e ) : void
frmProgConf_Loaded ( object sender, RoutedEventArgs e ) : void
mnuFile_Click ( object sender, RoutedEventArgs e ) : void
submnuDisconnect_Click ( object sender, RoutedEventArgs e ) : void
submnuExit_Click ( object sender, RoutedEventArgs e ) : void
submnuLoad_Click ( object sender, RoutedEventArgs e ) : void

This will load the file and pass the text to the editor.

submnuNew_Click ( object sender, RoutedEventArgs e ) : void
updateList ( List userList ) : void

Updates the list of users in the swarm.

Method Details

ProgConf() public method

Default constructor - Initializing the intial things
public ProgConf ( ) : System
return System

setUserList() public method

Sets the userlist sent by the connection module. This list contains all the users currently in the swarm.
public setUserList ( List list ) : void
list List List of all the users in the swarm
return void

setUsername() public method

Sets the username to be displayed on the screen. This is sent by the connection module.
public setUsername ( string user ) : void
user string username which was accepted by the swarm while connecting
return void